Skip to content

Commit b430068

Browse files
committed
fix(pivot): Assigns a default value #10565
1 parent 84f6675 commit b430068

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-filtering.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class IgxPivotFilteringService extends IgxFilteringService {
1818
const config = (grid as IgxPivotGridComponent).pivotConfiguration;
1919
const allDimensions = PivotUtil.flatten(config.rows.concat(config.columns).concat(config.filters).filter(x => x !== null));
2020
const enabledDimensions = allDimensions.filter(x => x && x.enabled);
21-
const dim = enabledDimensions.find(x => x.memberName === fieldName || x.member === fieldName);
21+
const dim = enabledDimensions.find(x => x.memberName === fieldName || x.member === fieldName) || {};
2222
dim.filters = undefined;
2323
grid.filteringPipeTrigger++;
2424
if (PivotUtil.flatten(config.columns).indexOf(dim) !== -1) {

0 commit comments

Comments
 (0)