Fix citation preview citeproc error. Closes #1430

This commit is contained in:
Adomas Venčkauskas 2018-01-31 14:13:32 +02:00
parent 97a045fe0f
commit 948a4dda64

View file

@ -1160,8 +1160,8 @@ Zotero.Integration.Fields.prototype.addEditCitation = Zotero.Promise.coroutine(f
yield citationsByItemIDPromise;
let citations = this._session.getCiteprocLists();
let citationsPre = citations.slice(0, fieldIndex);
let citationsPost = citations.slice(fieldIndex+1);
let citationsPre = citations.slice(0, idx);
let citationsPost = citations.slice(idx+1);
try {
return this._session.style.previewCitationCluster(citation, citationsPre, citationsPost, "rtf");
} catch(e) {