@tanstack/table-core 8.20.1 → 8.21.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/table-core",
3
- "version": "8.20.1",
3
+ "version": "8.21.2",
4
4
  "description": "Headless UI for building powerful tables & datagrids for TS/JS.",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
package/src/filterFns.ts CHANGED
@@ -5,7 +5,7 @@ const includesString: FilterFn<any> = (
5
5
  columnId: string,
6
6
  filterValue: string
7
7
  ) => {
8
- const search = filterValue.toLowerCase()
8
+ const search = filterValue?.toString()?.toLowerCase()
9
9
  return Boolean(
10
10
  row
11
11
  .getValue<string | null>(columnId)
@@ -50,7 +50,7 @@ const arrIncludes: FilterFn<any> = (
50
50
  return row.getValue<unknown[]>(columnId)?.includes(filterValue)
51
51
  }
52
52
 
53
- arrIncludes.autoRemove = (val: any) => testFalsey(val) || !val?.length
53
+ arrIncludes.autoRemove = (val: any) => testFalsey(val)
54
54
 
55
55
  const arrIncludesAll: FilterFn<any> = (
56
56
  row,