fix: remove log messages

dev
gravel 2 years ago
parent 002b5f5493
commit 5f199c1412
Signed by: gravel
GPG Key ID: C0538F3C906B308F

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

Loading…
Cancel
Save