Skip to content

Commit

Permalink
Add a missing guard for 'undefined' in the getFilteredRowModel function.
Browse files Browse the repository at this point in the history
  • Loading branch information
jjh2613 committed May 14, 2024
1 parent 047348f commit 96a50bb
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 96a50bb

Please sign in to comment.