From aba37b31e406aadbefbaf80f18a322a717394bf7 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 23 Jun 2019 20:01:26 -0400 Subject: [PATCH] Fix error from retractions notifier handler on group modification --- chrome/content/zotero/xpcom/retractions.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/xpcom/retractions.js b/chrome/content/zotero/xpcom/retractions.js index 94fc9cf20c..f7f3a2a477 100644 --- a/chrome/content/zotero/xpcom/retractions.js +++ b/chrome/content/zotero/xpcom/retractions.js @@ -326,9 +326,11 @@ Zotero.Retractions = { } // Clean up cache on group deletion - if (action == 'delete' && type == 'group') { - for (let libraryID of ids) { - this._resetLibraryRetractions(libraryID); + if (type == 'group') { + if (action == 'delete') { + for (let libraryID of ids) { + this._resetLibraryRetractions(libraryID); + } } return; }