@dhis2/analytics 26.10.1 → 26.10.2
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.
|
@@ -429,7 +429,10 @@ class PivotTableEngine {
|
|
|
429
429
|
return !this.data[row] || this.data[row].length === 0;
|
|
430
430
|
}
|
|
431
431
|
columnIsEmpty(column) {
|
|
432
|
-
return !this.rowMap.some(row =>
|
|
432
|
+
return !this.rowMap.some(row => {
|
|
433
|
+
var _this$data$row;
|
|
434
|
+
return !!((_this$data$row = this.data[row]) !== null && _this$data$row !== void 0 && _this$data$row[column]);
|
|
435
|
+
});
|
|
433
436
|
}
|
|
434
437
|
getRawColumnHeader(column) {
|
|
435
438
|
if (this.doRowTotals && column === this.dataWidth - 1) {
|
|
@@ -422,7 +422,10 @@ export class PivotTableEngine {
|
|
|
422
422
|
return !this.data[row] || this.data[row].length === 0;
|
|
423
423
|
}
|
|
424
424
|
columnIsEmpty(column) {
|
|
425
|
-
return !this.rowMap.some(row =>
|
|
425
|
+
return !this.rowMap.some(row => {
|
|
426
|
+
var _this$data$row;
|
|
427
|
+
return !!((_this$data$row = this.data[row]) !== null && _this$data$row !== void 0 && _this$data$row[column]);
|
|
428
|
+
});
|
|
426
429
|
}
|
|
427
430
|
getRawColumnHeader(column) {
|
|
428
431
|
if (this.doRowTotals && column === this.dataWidth - 1) {
|