diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index 65129f9b9f..8e3fa7a5ee 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -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