From ffb68f2f6cdea2e3ec29a6b1ac2ab5314d4bbf61 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Wed, 2 Jul 2025 10:33:25 -0400 Subject: [PATCH] Make Library#_initSave() async to match superclass Fixes .catch() error --- chrome/content/zotero/xpcom/data/library.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/data/library.js b/chrome/content/zotero/xpcom/data/library.js index 5fa44f3635..66cab2750a 100644 --- a/chrome/content/zotero/xpcom/data/library.js +++ b/chrome/content/zotero/xpcom/data/library.js @@ -481,7 +481,7 @@ Zotero.Library.prototype.save = async function (options) { } }; -Zotero.Library.prototype._initSave = function (env) { +Zotero.Library.prototype._initSave = async function (env) { if (this._libraryID === undefined) { env.isNew = true; @@ -742,4 +742,4 @@ Zotero.Library.prototype.hasItem = function (item) { throw new Error("item must be a Zotero.Item"); } return item.libraryID == this.libraryID; -} \ No newline at end of file +}