Skip to content

Commit 18ea2b6

Browse files
committed
chore(*): Try different sibling check for merging levels of dimensions
1 parent 9fd7f80 commit 18ea2b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class PivotRowDimensionsStrategy implements IPivotDimensionStrategy {
5757
PivotUtil.processSiblingProperties(newData[i], siblingData, pivotKeys);
5858

5959
PivotUtil.processSubGroups(row, prevRowDims.slice(0), siblingData, pivotKeys);
60-
if (siblingData.length > 1 && siblingData.length < newData[i][pivotKeys.records].length) {
60+
if (PivotUtil.getDimensionDepth(prevDim) > PivotUtil.getDimensionDepth(row) && siblingData.length > 1) {
6161
newData[i][row.memberName + '_' + pivotKeys.records] = siblingData;
6262
} else {
6363
newData.splice(i , 1, ...siblingData);

0 commit comments

Comments
 (0)