Skip to content

Commit 2efaf57

Browse files
authoredFeb 11, 2025··
fix: arrIncludes autoremove filterFn (#5623)
The `filterValue` for this function is not an array. Therefore, we should not check for its length.
1 parent b1506a7 commit 2efaf57

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
@@ -50,7 +50,7 @@ const arrIncludes: FilterFn<any> = (
5050
return row.getValue<unknown[]>(columnId)?.includes(filterValue)
5151
}
5252

53-
arrIncludes.autoRemove = (val: any) => testFalsey(val) || !val?.length
53+
arrIncludes.autoRemove = (val: any) => testFalsey(val)
5454

5555
const arrIncludesAll: FilterFn<any> = (
5656
row,

0 commit comments

Comments
 (0)
Please sign in to comment.