From 68105f2a5bb0c7daa10a8059bd47261850d2f6f3 Mon Sep 17 00:00:00 2001 From: lukebui <37239652+lukebui@users.noreply.github.com> Date: Sun, 23 Jun 2024 16:59:01 +0700 Subject: [PATCH] Fix `arrIncludes` filterFn The `filterValue` for this function is not an array. Therefore, we should not check for its length. --- packages/table-core/src/filterFns.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/table-core/src/filterFns.ts b/packages/table-core/src/filterFns.ts index 0192ef958d..c4e7d930c7 100644 --- a/packages/table-core/src/filterFns.ts +++ b/packages/table-core/src/filterFns.ts @@ -50,7 +50,7 @@ const arrIncludes: FilterFn = ( return row.getValue(columnId)?.includes(filterValue) } -arrIncludes.autoRemove = (val: any) => testFalsey(val) || !val?.length +arrIncludes.autoRemove = (val: any) => testFalsey(val) const arrIncludesAll: FilterFn = ( row,