From 96a50bb3394c651b9cd47ebc432315ec0004c5de Mon Sep 17 00:00:00 2001 From: jaehyeok jin Date: Tue, 14 May 2024 17:01:22 +0900 Subject: [PATCH] Add a missing guard for 'undefined' in the getFilteredRowModel function. --- packages/table-core/src/utils/getFilteredRowModel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/table-core/src/utils/getFilteredRowModel.ts b/packages/table-core/src/utils/getFilteredRowModel.ts index d1201df263..c04341ad2a 100644 --- a/packages/table-core/src/utils/getFilteredRowModel.ts +++ b/packages/table-core/src/utils/getFilteredRowModel.ts @@ -53,7 +53,7 @@ export function getFilteredRowModel(): ( }) }) - const filterableIds = columnFilters.map(d => d.id) + const filterableIds = (columnFilters ?? []).map(d => d.id) const globalFilterFn = table.getGlobalFilterFn()