diff --git a/chrome/content/zotero/integration/citationDialog/searchHandler.mjs b/chrome/content/zotero/integration/citationDialog/searchHandler.mjs index 2bde0ef9fc..bd341dde43 100644 --- a/chrome/content/zotero/integration/citationDialog/searchHandler.mjs +++ b/chrome/content/zotero/integration/citationDialog/searchHandler.mjs @@ -248,7 +248,9 @@ export class CitationDialogSearchHandler { } return Zotero.Cite.getItem(itemID); }); - return items; + // Return deduplicated items since there may be multiple tabs opened for the same + // top-level item (duplicate tabs or a multiple attachments belonging to the same item) + return [...new Set(items)]; } _getSelectedLibraryItems() {