mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
value.toString()
This commit is contained in:
parent
f1913fa6e2
commit
9fa91ffaa6
1 changed files with 1 additions and 4 deletions
|
|
@ -51,10 +51,7 @@ export const useSearchColumnFilter = <T extends {}>(dataIndex: string) => {
|
|||
),
|
||||
onFilter: (value, record) => {
|
||||
const searchValue = (record as any)[dataIndex];
|
||||
return searchValue && searchValue
|
||||
.toString()
|
||||
.toLowerCase()
|
||||
.includes(value.toLowerCase())
|
||||
return searchValue && searchValue.toString().toLowerCase().includes(value.toString().toLowerCase())
|
||||
}
|
||||
})
|
||||
}, [dataIndex]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue