Do not attempt to update bibliography when no citations are present
This commit is contained in:
parent
44e1f71908
commit
42ac976f1e
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue