Skip to content

Commit 0c4eeca

Browse files
committed
chore(*): Fix member name overriding to be only for single sibling and fix depth subroup processing.
1 parent 04ed370 commit 0c4eeca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

projects/igniteui-angular/src/lib/grids/pivot-grid/pivot-util.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ export class PivotUtil {
220220
if (!child[pivotKeys.records]) {
221221
continue;
222222
}
223-
child[row.memberName] = sibling[row.memberName];
224223
child[row.memberName + '_' + pivotKeys.records] = [];
225224
const keys = Object.assign({}, pivotKeys) as any;
226225
keys[row.memberName] = row.memberName;
@@ -249,7 +248,7 @@ export class PivotUtil {
249248
// Get child dimensions now as well since we go a level deeper into the hierarchy.
250249
// Keep above level dims as well since lower level dims correspond to upper sibling dims as well.
251250
const childDimensions = prevRowDims.filter(dim => !!dim.childLevel).map(dim => dim.childLevel);
252-
this.processSubGroups(row, [...childDimensions], childCollection, pivotKeys);
251+
this.processSubGroups(row, [...prevRowDims, ...childDimensions], childCollection, pivotKeys);
253252
}
254253
}
255254
}

0 commit comments

Comments
 (0)