Skip to content

Commit eed025d

Browse files
chore(*): optimized code #4780
Co-authored-by: Diyan Dimitrov <[email protected]> (cherry picked from commit 7a4bac9)
1 parent 8b39af8 commit eed025d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

projects/igniteui-angular/src/lib/grids/filtering/grid-filtering.service.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,8 @@ export class IgxFilteringService implements OnDestroy {
200200
const expressions = this.getExpressions(field);
201201
expressions.length = 0;
202202
} else {
203-
const fields = this.grid.columns.map(c => c.field);
204-
fields.forEach(f => {
205-
const expressions = this.getExpressions(f);
203+
this.grid.columns.forEach(c => {
204+
const expressions = this.getExpressions(c.field);
206205
expressions.length = 0;
207206
});
208207
}

0 commit comments

Comments
 (0)