Skip to content

Commit 5411f1a

Browse files
authored
fix: Add a missing guard for undefined in the getFilteredRowModel function. (#5555)
1 parent 047348f commit 5411f1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/table-core/src/utils/getFilteredRowModel.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export function getFilteredRowModel<TData extends RowData>(): (
5353
})
5454
})
5555

56-
const filterableIds = columnFilters.map(d => d.id)
56+
const filterableIds = (columnFilters ?? []).map(d => d.id)
5757

5858
const globalFilterFn = table.getGlobalFilterFn()
5959

0 commit comments

Comments
 (0)