Skip to content

Commit 134414e

Browse files
authored
fix: prevent toLowerCase is not a function filterFn error safely (#4777)
* convert nullish values to string during filterFn * more optional chaining * format
1 parent 781beb7 commit 134414e

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
@@ -11,7 +11,7 @@ const includesString: FilterFn<any> = (
1111
.getValue<string | null>(columnId)
1212
?.toString()
1313
?.toLowerCase()
14-
.includes(search)
14+
?.includes(search)
1515
)
1616
}
1717

0 commit comments

Comments
 (0)