@@ -1382,7 +1382,6 @@ class IrisGrid extends Component<IrisGridProps, IrisGridState> {
13821382 getModelTotalsConfig = memoize (
13831383 (
13841384 columns : readonly DhType . Column [ ] ,
1385- originalColumns : readonly DhType . Column [ ] ,
13861385 config : UIRollupConfig | undefined ,
13871386 aggregationSettings : AggregationSettings
13881387 ) : UITotalsTableConfig | null => {
@@ -1391,18 +1390,6 @@ class IrisGrid extends Component<IrisGridProps, IrisGridState> {
13911390 return null ;
13921391 }
13931392
1394- // TODO: evaluate whether this should be moved to proxy model, since it should manage the model transition
1395- // When a rollup is being removed the model `columns` still reflects the tree table's columns
1396- // while the rollup config has already been cleared. Building a totals config with those stale
1397- // column names would cause a server error.
1398- if (
1399- config != null &&
1400- config . columns . length === 0 &&
1401- columns !== originalColumns
1402- ) {
1403- return null ;
1404- }
1405-
14061393 // Filter out aggregations without any columns actually selected
14071394 const aggregations = aggregationSettings . aggregations . filter (
14081395 agg => agg . selected . length > 0 || agg . invert
@@ -5248,7 +5235,6 @@ class IrisGrid extends Component<IrisGridProps, IrisGridState> {
52485235 ) }
52495236 totalsConfig = { this . getModelTotalsConfig (
52505237 model . columns ,
5251- model . originalColumns ,
52525238 rollupConfig ,
52535239 aggregationSettings
52545240 ) }
0 commit comments