From 7eb90e0ba81d8e2b59b9b58b27c99eec4d389269 Mon Sep 17 00:00:00 2001 From: Melloware Date: Wed, 12 Oct 2022 08:05:45 -0400 Subject: [PATCH] Revert "Fix #3470: Datatable custom restore state column fix (#3472)" (#3474) This reverts commit c2159cb512c454756ffb08c04a08b3cbdc52dfb7. --- components/lib/datatable/DataTable.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/components/lib/datatable/DataTable.js b/components/lib/datatable/DataTable.js index 8a8e47408b..44682c5b82 100644 --- a/components/lib/datatable/DataTable.js +++ b/components/lib/datatable/DataTable.js @@ -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) {