Skip to content

Commit eb22651

Browse files
committed
fix(pivot): fix issue from comments
1 parent 0c9fbd0 commit eb22651

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,9 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni
487487
const allDimensions = config.rows.concat(config.columns).concat(config.filters).filter(x => x !== null && x !== undefined);
488488
const enabledDimensions = allDimensions.filter(x => x && x.enabled);
489489
const dim = PivotUtil.flatten(enabledDimensions).find(x => x.memberName === column.field);
490-
this.getDimensionData(dim, exprTree, uniqueValues => done(uniqueValues));
490+
if (dim) {
491+
this.getDimensionData(dim, exprTree, uniqueValues => done(uniqueValues));
492+
}
491493
}
492494

493495
public getDimensionData(dim: IPivotDimension,

0 commit comments

Comments
 (0)