Fix citation preview citeproc error. Closes #1430
This commit is contained in:
parent
97a045fe0f
commit
948a4dda64
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue