diff --git a/chrome/content/zotero/xpcom/retractions.js b/chrome/content/zotero/xpcom/retractions.js index 23785bfe12..94fc9cf20c 100644 --- a/chrome/content/zotero/xpcom/retractions.js +++ b/chrome/content/zotero/xpcom/retractions.js @@ -234,6 +234,10 @@ Zotero.Retractions = { }, _removeLibraryRetractedItem: async function (libraryID, itemID) { + // Might not exist if retracted item was in trash at startup or when detected + if (!this._retractedItemsByLibrary[libraryID]) { + return; + } this._retractedItemsByLibrary[libraryID].delete(itemID); await this._updateLibraryRetractions(libraryID); },