@deephaven/iris-grid 0.107.1-beta.1 → 0.107.1-beta.5
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.
- package/dist/IrisGridTableModelTemplate.js +4 -4
- package/dist/IrisGridTableModelTemplate.js.map +1 -1
- package/dist/mousehandlers/IrisGridContextMenuHandler.d.ts.map +1 -1
- package/dist/mousehandlers/IrisGridContextMenuHandler.js +3 -2
- package/dist/mousehandlers/IrisGridContextMenuHandler.js.map +1 -1
- package/package.json +16 -16
|
@@ -785,11 +785,11 @@ class IrisGridTableModelTemplate extends IrisGridModel {
|
|
|
785
785
|
var tableColumn = this.columns[column];
|
|
786
786
|
|
|
787
787
|
// Find the matching totals table column for the operation
|
|
788
|
-
// When there are multiple aggregations, the column name will be the original name of the column with the operation appended afterward
|
|
789
|
-
// 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
|
|
788
|
+
// When there are multiple aggregations for the column, the column name will be the original name of the column with the operation appended afterward
|
|
789
|
+
// 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
|
|
790
790
|
var totalsColumn = (_this$totalsTable = this.totalsTable) === null || _this$totalsTable === void 0 ? void 0 : _this$totalsTable.columns.find(col => {
|
|
791
|
-
var _this$totals9;
|
|
792
|
-
return col.name === "".concat(tableColumn.name, "__").concat(operation) || (operation === defaultOperation || ((_this$totals9 = this.totals) === null || _this$totals9 === void 0 ? void 0 : _this$totals9.
|
|
791
|
+
var _this$totals9, _this$totals9$operati;
|
|
792
|
+
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;
|
|
793
793
|
});
|
|
794
794
|
if (totalsColumn != null) {
|
|
795
795
|
return totalsColumn;
|