Improves citation processing speed

Prevents from unnecesarily sending the same citation to citeproc
multiple times
This commit is contained in:
Adomas Venčkauskas 2018-02-15 12:26:50 +02:00
parent bb925723fd
commit 00e52ae62b

View file

@ -1553,6 +1553,8 @@ Zotero.Integration.Session.prototype._updateCitations = async function () {
if (index in this.newIndices) {
citationsPost = [];
delete this.newIndices[index];
// If this item will need updating later citation processing will reset this index later in the loop
delete this.updateIndices[index];
} else {
citationsPost = citations.slice(citationToFieldIdxMapping[index]+1);
}