Skip to content

Commit 92c16ef

Browse files
authored
Merge pull request #10608 from IgniteUI/mkirova/fix-10600
fix(pivot): Extract hierarchy from original leaf records.
2 parents 030edf2 + ff0e05f commit 92c16ef

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
@@ -52,8 +52,9 @@ export class PivotRowDimensionsStrategy implements IPivotDimensionStrategy {
5252
const newData = [...data];
5353
for (let i = 0; i < newData.length; i++) {
5454
const currData = newData[i][prevDim.memberName + '_' + pivotKeys.records];
55+
const leafData = PivotUtil.getDirectLeafs(currData, pivotKeys);
5556
const hierarchyFields = PivotUtil
56-
.getFieldsHierarchy(currData, [row], PivotDimensionType.Row, pivotKeys);
57+
.getFieldsHierarchy(leafData, [row], PivotDimensionType.Row, pivotKeys);
5758
const siblingData = PivotUtil
5859
.processHierarchy(hierarchyFields, newData[i] ?? [], pivotKeys, 0);
5960
PivotUtil.processSiblingProperties(newData[i], siblingData, pivotKeys);

0 commit comments

Comments
 (0)