diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index f56d56919a..3fea489dca 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -4800,13 +4800,15 @@ var ZoteroPane = new function() link.textContent = Zotero.getString('retraction.alert.view.' + suffix); link.onclick = async function () { this.hideRetractionBanner(); - var libraryID = this.getSelectedLibraryID(); - // Select the Retracted Items collection - await this.collectionsView.selectByID("R" + libraryID); // Select newly detected item if only one if (items.length == 1) { await this.selectItem(items[0].id); } + // Otherwise select Retracted Items collection + else { + let libraryID = this.getSelectedLibraryID(); + await this.collectionsView.selectByID("R" + libraryID); + } }.bind(this); close.onclick = function () {