Skip to content

Commit a416165

Browse files
committed
Minor fixes
1 parent c6c8372 commit a416165

File tree

1 file changed

+2
-4
lines changed
  • src/components/table/body/header

1 file changed

+2
-4
lines changed

src/components/table/body/header/index.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useTableState } from "../../provider"
44
import Cell from "./cell"
55

66
const rerenderSelector = state => {
7-
const columns = state.table?.getAllColumns() || []
7+
const columns = state.table?.getAllColumns?.() || []
88

99
return {
1010
sizing: state.columnSizing,
@@ -13,9 +13,7 @@ const rerenderSelector = state => {
1313
selectedRows: state.selectedRows,
1414
grouping: state.grouping,
1515
columnsCount: columns.length,
16-
columnsFilters: columns.map(({ columnDef }) => ({
17-
filterOptions: columnDef?.meta?.filter?.options,
18-
})),
16+
columnsFilters: columns.map(({ columnDef }) => columnDef?.meta?.filter?.options),
1917
}
2018
}
2119

0 commit comments

Comments
 (0)