From c77e0674691f253e7f50475b64b1bb6893fa4270 Mon Sep 17 00:00:00 2001 From: Jen Jones Arnesen Date: Tue, 4 Feb 2025 09:18:08 +0100 Subject: [PATCH] chore: clean up changes --- src/modules/pivotTable/PivotTableEngine.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/modules/pivotTable/PivotTableEngine.js b/src/modules/pivotTable/PivotTableEngine.js index 5d0cc5501..b5b0145d4 100644 --- a/src/modules/pivotTable/PivotTableEngine.js +++ b/src/modules/pivotTable/PivotTableEngine.js @@ -607,9 +607,7 @@ export class PivotTableEngine { return !this.data[row] || this.data[row].length === 0 } columnIsEmpty(column) { - return !this.rowMap.some( - (row) => this.data[row] && this.data[row][column] - ) + return !this.rowMap.some((row) => !!this.data[row]?.[column]) } getRawColumnHeader(column) {