@deephaven/iris-grid 0.85.20 → 0.85.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -773,11 +773,11 @@ class IrisGridTableModelTemplate extends IrisGridModel {
773
773
  var tableColumn = this.columns[column];
774
774
 
775
775
  // Find the matching totals table column for the operation
776
- // When there are multiple aggregations, the column name will be the original name of the column with the operation appended afterward
777
- // When the the operation is the default operation OR there is only one operation, then the totals column name is just the original column name
776
+ // When there are multiple aggregations for the column, the column name will be the original name of the column with the operation appended afterward
777
+ // When the the operation is the default operation OR there is only one operation for the column, then the totals column name is just the original column name
778
778
  var totalsColumn = (_this$totalsTable = this.totalsTable) === null || _this$totalsTable === void 0 ? void 0 : _this$totalsTable.columns.find(col => {
779
- var _this$totals9;
780
- return col.name === "".concat(tableColumn.name, "__").concat(operation) || (operation === defaultOperation || ((_this$totals9 = this.totals) === null || _this$totals9 === void 0 ? void 0 : _this$totals9.operationOrder.length) === 1) && col.name === tableColumn.name;
779
+ var _this$totals9, _this$totals9$operati;
780
+ return col.name === "".concat(tableColumn.name, "__").concat(operation) || (operation === defaultOperation || ((_this$totals9 = this.totals) === null || _this$totals9 === void 0 ? void 0 : (_this$totals9$operati = _this$totals9.operationMap[col.name]) === null || _this$totals9$operati === void 0 ? void 0 : _this$totals9$operati.length) === 1) && col.name === tableColumn.name;
781
781
  });
782
782
  if (totalsColumn != null) {
783
783
  return totalsColumn;