Skip to content

Commit

Permalink
Revert "Fix #3470: Datatable custom restore state column fix (#3472)"
Browse files Browse the repository at this point in the history
This reverts commit c2159cb.
  • Loading branch information
melloware authored Oct 12, 2022
1 parent e28196e commit bacd093
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions components/lib/datatable/DataTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,12 +314,7 @@ export const DataTable = React.forwardRef((props, ref) => {
if (props.resizableColumns) {
columnWidthsState.current = restoredState.columnWidths;
tableWidthState.current = restoredState.tableWidth;

const isCustom = props.customRestoreState && isCustomStateStorage();

if (!isCustom) {
restoreColumnWidths();
}
restoreColumnWidths();
}

if (props.reorderableColumns) {
Expand Down

0 comments on commit bacd093

Please sign in to comment.