Skip to content

Commit

Permalink
fix: Add a missing guard for undefined in the getFilteredRowModel fun…
Browse files Browse the repository at this point in the history
…ction. (#5555)
  • Loading branch information
jjh2613 committed May 14, 2024
1 parent 047348f commit 5411f1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/table-core/src/utils/getFilteredRowModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function getFilteredRowModel<TData extends RowData>(): (
})
})

const filterableIds = columnFilters.map(d => d.id)
const filterableIds = (columnFilters ?? []).map(d => d.id)

const globalFilterFn = table.getGlobalFilterFn()

Expand Down

0 comments on commit 5411f1a

Please sign in to comment.