Fixes the refresh error after style reinstall. Closes #1500

This commit is contained in:
Adomas Venčkauskas 2018-05-15 14:12:31 +03:00
parent 81ab8f7b20
commit 6960b7f86e

View file

@ -665,7 +665,7 @@ Zotero.Integration.Interface.prototype.addEditBibliography = Zotero.Promise.coro
Zotero.Integration.Interface.prototype.refresh = async function() {
await this._session.init(true, false)
this._session.reload = this._session.data.prefs.delayCitationUpdates;
this._session.reload = this._session.reload || this._session.data.prefs.delayCitationUpdates;
await this._session.fields.updateSession(FORCE_CITATIONS_REGENERATE)
await this._session.fields.updateDocument(FORCE_CITATIONS_REGENERATE, true, false);
}