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; } }