Skip to content

Commit 48f174b

Browse files
committed
minor tweak to column state chain for updates
1 parent 45fb131 commit 48f174b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/fragments/AgGrid.react.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,10 +1342,10 @@ export function DashAgGrid(props) {
13421342

13431343
// Handle gridApi initialization - column state application
13441344
useEffect(() => {
1345-
if (gridApi && gridApi !== prevGridApi && props.columnState) {
1345+
if (gridApi && gridApi !== prevGridApi && columnState_push) {
13461346
setColumnState();
13471347
}
1348-
}, [gridApi, prevGridApi, props.columnState, setColumnState]);
1348+
}, [gridApi, prevGridApi, columnState_push]);
13491349

13501350
// Handle gridApi initialization - finalization
13511351
useEffect(() => {
@@ -1378,7 +1378,7 @@ export function DashAgGrid(props) {
13781378
setColumnState_push(true);
13791379
}
13801380
}
1381-
}, [props.columnState, props.loading_state, columnState_push]);
1381+
}, [props.columnState, props.loading_state]);
13821382

13831383
// Handle ID changes
13841384
useEffect(() => {

0 commit comments

Comments
 (0)