Fix errorHandler check in DataObject.save()
This commit is contained in:
parent
3349930483
commit
e2b62580d1
1 changed files with 1 additions and 1 deletions
|
@ -584,7 +584,7 @@ Zotero.DataObject.prototype.save = Zotero.Promise.coroutine(function* (options)
|
||||||
Zotero.debug(e2, 1);
|
Zotero.debug(e2, 1);
|
||||||
})
|
})
|
||||||
.then(function() {
|
.then(function() {
|
||||||
if (options.errorHandler(e)) {
|
if (options.errorHandler) {
|
||||||
options.errorHandler(e);
|
options.errorHandler(e);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in a new issue