This commit is contained in:
2024-09-14 17:09:29 +02:00
parent 6f965b1704
commit c70b172b08
7 changed files with 73 additions and 28 deletions

View File

@@ -1,14 +1,7 @@
export const useSearch = (searchString,items) => {
if(!searchString) {
return items
}
return items.filter(i => JSON.stringify(i).toLowerCase().includes(searchString.toLowerCase()))
}