We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6c8372 commit a416165Copy full SHA for a416165
src/components/table/body/header/index.js
@@ -4,7 +4,7 @@ import { useTableState } from "../../provider"
4
import Cell from "./cell"
5
6
const rerenderSelector = state => {
7
- const columns = state.table?.getAllColumns() || []
+ const columns = state.table?.getAllColumns?.() || []
8
9
return {
10
sizing: state.columnSizing,
@@ -13,9 +13,7 @@ const rerenderSelector = state => {
13
selectedRows: state.selectedRows,
14
grouping: state.grouping,
15
columnsCount: columns.length,
16
- columnsFilters: columns.map(({ columnDef }) => ({
17
- filterOptions: columnDef?.meta?.filter?.options,
18
- })),
+ columnsFilters: columns.map(({ columnDef }) => columnDef?.meta?.filter?.options),
19
}
20
21
0 commit comments