Skip to content

Commit 7a8f698

Browse files
MKirovaMKirova
authored andcommitted
Fix for expander pipe.
1 parent ec7c0f2 commit 7a8f698

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,11 @@ export class IgxPivotRowExpansionPipe implements PipeTransform {
4949
_pipeTrigger?: number,
5050
pivotKeys: IPivotKeys = {aggregations: 'aggregations', records: 'records', children: 'children', level: 'level'}
5151
): any[] {
52+
const enabledRows = config.rows.filter(x => x.enabled);
5253
const data = collection ? collection.slice(0) : [];
5354
let totalLlv = 0;
5455
const prevDims = [];
55-
for (const row of config.rows) {
56+
for (const row of enabledRows) {
5657
const lvl = PivotUtil.getDimensionDepth(row);
5758
totalLlv += lvl;
5859
PivotUtil.flattenHierarchy(data, config, row, expansionStates, pivotKeys, totalLlv, prevDims, 0);

0 commit comments

Comments
 (0)