From bacd093bb616cf674b70e0678a6e6d0f32a9f040 Mon Sep 17 00:00:00 2001 From: Melloware Date: Wed, 12 Oct 2022 08:05:32 -0400 Subject: [PATCH] Revert "Fix #3470: Datatable custom restore state column fix (#3472)" 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) {