Merge pull request #1642 from Juris-M/zmaster-set-process-indices

This commit is contained in:
Adomas Venčkauskas 2019-02-13 08:44:19 +02:00
commit 6e0c66a1ee

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