Don't fail if processDocuments() processor returns undefined
Follow up to 157b8deda9
This commit is contained in:
parent
2f47eae3ff
commit
e4bc4c028d
|
@ -864,7 +864,7 @@ Zotero.HTTP = new function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// If processor returns a promise, wait for it
|
// If processor returns a promise, wait for it
|
||||||
if (maybePromise.then) {
|
if (maybePromise && maybePromise.then) {
|
||||||
maybePromise.then(() => doLoad())
|
maybePromise.then(() => doLoad())
|
||||||
.catch(e => {
|
.catch(e => {
|
||||||
if (exception) {
|
if (exception) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user