Skip to content

Commit 237b1c4

Browse files
fix(table-core): allow searching of numbers (#5718)
Co-authored-by: gaga8820 <[email protected]>
1 parent 58913b6 commit 237b1c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/table-core/src/filterFns.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const includesString: FilterFn<any> = (
55
columnId: string,
66
filterValue: string
77
) => {
8-
const search = filterValue.toLowerCase()
8+
const search = filterValue?.toString()?.toLowerCase()
99
return Boolean(
1010
row
1111
.getValue<string | null>(columnId)

0 commit comments

Comments
 (0)