Fix error from retractions notifier handler on group modification

This commit is contained in:
Dan Stillman 2019-06-23 20:01:26 -04:00
parent d0f976f6bd
commit aba37b31e4

View file

@ -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;
}