Skip to content

Commit a4680e0

Browse files
MKirovaMKirova
authored andcommitted
Additional minor fixes.
1 parent b0d546e commit a4680e0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class IgxPivotRowPipe implements PipeTransform {
3030
): any[] {
3131
const enabledRows = config.rows.filter(x => x.enabled);
3232
const rowStrategy = config.rowStrategy || PivotRowDimensionsStrategy.instance();
33-
return rowStrategy.process(collection.slice(0), enabledRows, config.values, pivotKeys);
33+
return rowStrategy.process(cloneArray(collection, true), enabledRows, config.values, pivotKeys);
3434
}
3535
}
3636

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export class PivotUtil {
114114
data.splice(i, 1, ...dimData);
115115
i += dimData.length - 1;
116116
}
117-
} else {
117+
} else if (isExpanded) {
118118
// this is leaf
119119
let leafDim = dim;
120120
let currLvl = currDimLvl;
@@ -123,7 +123,7 @@ export class PivotUtil {
123123
currLvl++;
124124
}
125125
rec[leafDim.memberName + '_' + pivotKeys.level] = currLvl;
126-
rec[field + '_' + pivotKeys.level] = undefined;
126+
delete rec[field + '_' + pivotKeys.level];
127127
}
128128
}
129129
return data;

0 commit comments

Comments
 (0)