File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import IrisGridTableModel from './IrisGridTableModel';
1111import IrisGridPartitionedTableModel from './IrisGridPartitionedTableModel' ;
1212import IrisGridTreeTableModel from './IrisGridTreeTableModel' ;
1313import IrisGridModel from './IrisGridModel' ;
14- import { type ColumnName } from './CommonTypes' ;
14+ import { type ColumnName , type UITotalsTableConfig } from './CommonTypes' ;
1515import { isIrisGridTableModelTemplate } from './IrisGridTableModelTemplate' ;
1616import {
1717 type PartitionConfig ,
@@ -431,6 +431,15 @@ class IrisGridProxyModel extends IrisGridModel implements PartitionedGridModel {
431431 this . setNextModel ( modelPromise ) ;
432432 }
433433
434+ set totalsConfig ( totalsConfig : UITotalsTableConfig | null ) {
435+ if ( this . modelPromise != null ) {
436+ // Model switch in progress. Don't forward, as the config may reference stale columns.
437+ // COLUMNS_CHANGED will reapply the correct config after.
438+ return ;
439+ }
440+ this . model . totalsConfig = totalsConfig ;
441+ }
442+
434443 get isFilterRequired ( ) : boolean {
435444 return this . originalModel . isFilterRequired ;
436445 }
You can’t perform that action at this time.
0 commit comments