Fix citation preview citeproc error. Closes #1430
This commit is contained in:
parent
97a045fe0f
commit
948a4dda64
|
@ -1160,8 +1160,8 @@ Zotero.Integration.Fields.prototype.addEditCitation = Zotero.Promise.coroutine(f
|
||||||
yield citationsByItemIDPromise;
|
yield citationsByItemIDPromise;
|
||||||
|
|
||||||
let citations = this._session.getCiteprocLists();
|
let citations = this._session.getCiteprocLists();
|
||||||
let citationsPre = citations.slice(0, fieldIndex);
|
let citationsPre = citations.slice(0, idx);
|
||||||
let citationsPost = citations.slice(fieldIndex+1);
|
let citationsPost = citations.slice(idx+1);
|
||||||
try {
|
try {
|
||||||
return this._session.style.previewCitationCluster(citation, citationsPre, citationsPost, "rtf");
|
return this._session.style.previewCitationCluster(citation, citationsPre, citationsPost, "rtf");
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user