Skip to content

Commit fb0167a

Browse files
committed
fix(grid): call codition.logic only if existing
1 parent af09ba9 commit fb0167a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/igniteui-angular/src/lib/data-operations/filtering-strategy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export abstract class BaseFilteringStrategy implements IFilteringStrategy {
4040
// protected
4141
public findMatchByExpression(rec: any, expr: IFilteringExpression, isDate?: boolean, isTime?: boolean, grid?: GridType): boolean {
4242
const val = this.getFieldValue(rec, expr.fieldName, isDate, isTime, grid);
43-
return expr.condition.logic(val, expr.searchVal, expr.ignoreCase);
43+
return expr.condition?.logic(val, expr.searchVal, expr.ignoreCase);
4444
}
4545

4646
// protected

0 commit comments

Comments
 (0)