Do not attempt to update bibliography when no citations are present

This commit is contained in:
Adomas Venčkauskas 2020-06-18 16:13:47 +03:00
parent 44e1f71908
commit 42ac976f1e

View file

@ -1121,6 +1121,7 @@ Zotero.Integration.Fields.prototype._updateDocument = async function(forceCitati
// update bibliographies
if (this._session.bibliography // if bibliography exists
&& Object.keys(this._session.citationsByIndex).length // and doc has citations
&& (this._session.bibliographyHasChanged // and bibliography changed
|| forceBibliography)) { // or if we should generate regardless of
// changes