Skip to content

Commit

Permalink
fix: pass dxDimension object also for empty cells
Browse files Browse the repository at this point in the history
Needed for the cumulative values feature.
  • Loading branch information
edoardo committed Nov 10, 2023
1 parent 7297a16 commit 321e0ac
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/modules/pivotTable/PivotTableEngine.js
Original file line number Diff line number Diff line change
Expand Up @@ -520,10 +520,8 @@ export class PivotTableEngine {
return undefined
}
const cellValue = this.data[row][column]
if (!cellValue) {
return undefined
}
if (!Array.isArray(cellValue)) {

if (cellValue && !Array.isArray(cellValue)) {
// This is a total cell
return {
valueType: cellValue.valueType,
Expand Down Expand Up @@ -559,6 +557,11 @@ export class PivotTableEngine {
}
}

// Empty cell
// The cell still needs to get the valueType to render correctly 0 and cumulative values
//
// OR
//
// Data is in Filter
// TODO : This assumes the server ignores text types, we should confirm this is the case
return {
Expand Down

0 comments on commit 321e0ac

Please sign in to comment.