Skip to content

Commit 0633022

Browse files
committed
fix(pivot): Fix iteration of data for row dimensions.
1 parent 901a37c commit 0633022

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

projects/igniteui-angular/src/lib/data-operations/pivot-strategy.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,11 @@ export class PivotRowDimensionsStrategy implements IPivotDimensionStrategy {
5959
PivotUtil.processSubGroups(row, prevRowDims.slice(0), siblingData, pivotKeys);
6060
if (PivotUtil.getDimensionDepth(prevDim) > PivotUtil.getDimensionDepth(row) && siblingData.length > 1) {
6161
newData[i][row.memberName + '_' + pivotKeys.records] = siblingData;
62+
i++;
6263
} else {
6364
newData.splice(i , 1, ...siblingData);
65+
i += siblingData.length - 1;
6466
}
65-
i += siblingData.length - 1;
6667
}
6768
data = newData;
6869
prevDim = row;

0 commit comments

Comments
 (0)