diff --git a/SAS/TMSS/frontend/tmss_webapp/src/components/ViewTable.js b/SAS/TMSS/frontend/tmss_webapp/src/components/ViewTable.js index 878390fb3f0be9b8282e5ed80afe37a418051086..ba044fdf6a40cf433a63e4f3919aa4ca3f815409 100644 --- a/SAS/TMSS/frontend/tmss_webapp/src/components/ViewTable.js +++ b/SAS/TMSS/frontend/tmss_webapp/src/components/ViewTable.js @@ -1845,7 +1845,10 @@ function Table(props) { ); // console.log('columns List', visibleColumns.map((d) => d.id)); const storedColOrder = UtilService.localStore({ type: 'get', key: tablename+'colOrder'}); - if (columnOrders && columnOrders.length) { + if (storedColOrder) { + setColumnOrder(storedColOrder) + } + else if (columnOrders && columnOrders.length) { if (showAction === 'true') { setColumnOrder(['Select', 'Action', ...columnOrders]); UtilService.localStore({ type: 'set', key: tablename+'colOrder', value: ['Select', 'Action', ...columnOrders]});