From 30b6bf6da7fecd2bce6c4301da7096f36664ece3 Mon Sep 17 00:00:00 2001 From: Frank Bennett Date: Wed, 13 Feb 2019 08:58:11 +0900 Subject: [PATCH] Set processIndices for each processor return --- chrome/content/zotero/xpcom/integration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index 3f56a45d57..8ec48a3e35 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -1663,7 +1663,6 @@ Zotero.Integration.Session.prototype._updateCitations = async function () { [citations, fieldToCitationIdxMapping, citationToFieldIdxMapping] = this.getCiteprocLists() } - this.processIndices[index] = true; // Jump to next event loop step for UI updates await Zotero.Promise.delay(); @@ -1683,6 +1682,7 @@ Zotero.Integration.Session.prototype._updateCitations = async function () { for (let citationInfo of newCitations) { let idx = fieldToCitationIdxMapping[citationInfo[0]], text = citationInfo[1]; + this.processIndices[idx] = true; this.citationsByIndex[idx].text = text; } }