Closed KuriatoV closed 3 weeks ago
Seems like prop "hidden" on column doesn't affect the column and depends only on "toggled" prop, this caused by this code in useDataTableColumns.ts
const result = columnsOrder .map((order) => columns.find((column) => column.accessor === order)) .map((column) => { return { ...column, hidden: !columnsToggle.find((toggle) => { // here return toggle.accessor === column?.accessor; })?.toggled, }; }) as DataTableColumn<T>[];
Seems like prop "hidden" on column doesn't affect the column and depends only on "toggled" prop, this caused by this code in useDataTableColumns.ts