@visactor/vtable 1.7.7 → 1.7.8-alpha.0

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.
@@ -530,9 +530,13 @@ export class Dataset {
530
530
  colCompute(flatRowKey, flatColKey);
531
531
  }));
532
532
  })), rowTotalKeys.forEach((flatRowKey => {
533
- Object.keys(that.tree[flatRowKey]).forEach((flatColKey => {
533
+ var _a, _b;
534
+ if (Object.keys(that.tree[flatRowKey]).forEach((flatColKey => {
534
535
  colCompute(flatRowKey, flatColKey);
535
- }));
536
+ })), (null === (_b = null === (_a = that.totals) || void 0 === _a ? void 0 : _a.column) || void 0 === _b ? void 0 : _b.showGrandTotals) || 0 === this.rows.length) {
537
+ const flatColTotalKey = that.colGrandTotalLabel;
538
+ this.tree[flatRowKey][flatColTotalKey] || colCompute(flatRowKey, flatColTotalKey);
539
+ }
536
540
  }));
537
541
  }
538
542
  }