Improves citation processing speed
Prevents from unnecesarily sending the same citation to citeproc multiple times
This commit is contained in:
parent
bb925723fd
commit
00e52ae62b
1 changed files with 2 additions and 0 deletions
|
@ -1553,6 +1553,8 @@ Zotero.Integration.Session.prototype._updateCitations = async function () {
|
||||||
if (index in this.newIndices) {
|
if (index in this.newIndices) {
|
||||||
citationsPost = [];
|
citationsPost = [];
|
||||||
delete this.newIndices[index];
|
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 {
|
} else {
|
||||||
citationsPost = citations.slice(citationToFieldIdxMapping[index]+1);
|
citationsPost = citations.slice(citationToFieldIdxMapping[index]+1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue