fix filter by split

This commit is contained in:
mbecker20
2024-06-05 15:16:30 -07:00
parent d2b2aa0550
commit 36a49210a0
4 changed files with 60 additions and 34 deletions

View File

@@ -167,7 +167,7 @@ export const filterBySplit = <T>(
return (
(split.length
? items?.filter((item) => {
const target = extract(item);
const target = extract(item).toLowerCase();
return split.every((term) => target.includes(term));
})
: items) ?? []