|
|
|
@ -780,10 +780,8 @@ async function useSearchTerm(rawTerm, fillSearchBarWithTerm = false) {
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
console.time("search");
|
|
|
|
|
const newRowMatches = communityFullRowCache.map(async (rowCache) => ({ rowCache, doesMatch: await rowMatches(rowCache) }));
|
|
|
|
|
const newRows = (await Promise.all(newRowMatches)).filter((row) => row.doesMatch).map(({rowCache}) => rowCache.row);
|
|
|
|
|
console.timeEnd("search");
|
|
|
|
|
if (newRows.length === 0) {
|
|
|
|
|
searchBar.classList.add(CLASSES.SEARCH.NO_RESULTS);
|
|
|
|
|
} else {
|
|
|
|
|