Skip to content

Commit 967bb36

Browse files
MKirovaMKirova
authored andcommitted
Update tests.
1 parent 4b270cc commit 967bb36

File tree

2 files changed

+243
-873
lines changed

2 files changed

+243
-873
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
@@ -111,7 +111,7 @@ export class PivotColumnDimensionsStrategy implements IPivotDimensionStrategy {
111111
const keys = Object.keys(hierarchy);
112112
//remove all record keys from final data since we don't need them anymore.
113113
keys.forEach(k => {
114-
if (k.indexOf(pivotKeys.records) !== -1) {
114+
if (k.indexOf(pivotKeys.records) !== -1 || k === pivotKeys.level) {
115115
delete hierarchy[k];
116116
}
117117
});

0 commit comments

Comments
 (0)