Skip to content

Commit

Permalink
fix(table-core): allow searching of numbers (#5718)
Browse files Browse the repository at this point in the history
Co-authored-by: gaga8820 <gagandeep.singh1@rackspace.com>
  • Loading branch information
GaganSingh7 and cre8ive-gds committed Aug 24, 2024
1 parent 58913b6 commit 237b1c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/table-core/src/filterFns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const includesString: FilterFn<any> = (
columnId: string,
filterValue: string
) => {
const search = filterValue.toLowerCase()
const search = filterValue?.toString()?.toLowerCase()
return Boolean(
row
.getValue<string | null>(columnId)
Expand Down

0 comments on commit 237b1c4

Please sign in to comment.