From b7c2002b6388cce455c70a277eff99eb3d7fe140 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 27 Jul 2025 01:44:36 -0400 Subject: [PATCH] Fix another Bluebird removal bug Use of `Promise.map()` --- chrome/content/zotero/xpcom/data/search.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/data/search.js b/chrome/content/zotero/xpcom/data/search.js index c93679a4ed..e7567abd60 100644 --- a/chrome/content/zotero/xpcom/data/search.js +++ b/chrome/content/zotero/xpcom/data/search.js @@ -724,11 +724,11 @@ Zotero.Search.prototype.search = async function (asTempTable) { // Search the full-text content else if (scopeIDs.length) { let found = new Set( - await Zotero.Fulltext.findTextInItems( + (await Zotero.Fulltext.findTextInItems( scopeIDs, condition.value, condition.mode - ).map(x => x.id) + )).map(x => x.id) ); // Either include or exclude the results, depending on the operator filteredIDs = scopeIDs.filter((id) => {