fix(ui): fix filterlist method
This commit is contained in:
parent
ad11ba4d06
commit
9d36aefc7c
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ export const filterList = <T extends Record<string, any>>(
|
|||
if (searchQuery === '') return list;
|
||||
const filterRE = getRE(searchQuery, 'i');
|
||||
let _list = list.filter((listItem: T) => {
|
||||
return testKeys.some((key) => filterRE.test(listItem[key]) || searchCb?.(listItem, filterRE));
|
||||
return testKeys.some((key) => filterRE.test(listItem[key])) || searchCb?.(listItem, filterRE);
|
||||
});
|
||||
return _list;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue