Set processIndices for each processor return

This commit is contained in:
Frank Bennett 2019-02-13 08:58:11 +09:00 committed by Adomas Venčkauskas
parent 9ddd4dda3a
commit 30b6bf6da7

View file

@ -1663,7 +1663,6 @@ Zotero.Integration.Session.prototype._updateCitations = async function () {
[citations, fieldToCitationIdxMapping, citationToFieldIdxMapping] = [citations, fieldToCitationIdxMapping, citationToFieldIdxMapping] =
this.getCiteprocLists() this.getCiteprocLists()
} }
this.processIndices[index] = true;
// Jump to next event loop step for UI updates // Jump to next event loop step for UI updates
await Zotero.Promise.delay(); await Zotero.Promise.delay();
@ -1683,6 +1682,7 @@ Zotero.Integration.Session.prototype._updateCitations = async function () {
for (let citationInfo of newCitations) { for (let citationInfo of newCitations) {
let idx = fieldToCitationIdxMapping[citationInfo[0]], text = citationInfo[1]; let idx = fieldToCitationIdxMapping[citationInfo[0]], text = citationInfo[1];
this.processIndices[idx] = true;
this.citationsByIndex[idx].text = text; this.citationsByIndex[idx].text = text;
} }
} }