Skip to content

Commit 63aff6b

Browse files
committed
fix(*): Filter undefined properties from pivot configuration
1 parent e5e618d commit 63aff6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni
943943

944944
protected generateDimensionColumns(): IgxColumnComponent[] {
945945
const config = this.pivotConfiguration;
946-
const allDimensions = config.rows.concat(config.columns).concat(config.filters).filter(x => x !== null);
946+
const allDimensions = config.rows.concat(config.columns).concat(config.filters).filter(x => x !== null && x !== undefined);
947947
const leafFields = PivotUtil.flatten(allDimensions, 0).filter(x => !x.childLevel).map(x => x.memberName);
948948
const columns = [];
949949
const factory = this.resolver.resolveComponentFactory(IgxColumnComponent);

0 commit comments

Comments
 (0)