diff --git a/packages/common/src/services/filter.service.ts b/packages/common/src/services/filter.service.ts index 82a2163a4..2c7681605 100644 --- a/packages/common/src/services/filter.service.ts +++ b/packages/common/src/services/filter.service.ts @@ -864,7 +864,7 @@ export class FilterService { let searchTerms: SearchTerm[] | undefined; let operator: OperatorString | OperatorType | undefined; const newFilter: Filter | undefined = this.filterFactory.createFilter(columnDef.filter); - operator = columnDef?.filter?.operator ?? newFilter?.operator; + operator = (columnDef && columnDef.filter && columnDef.filter.operator) || (newFilter && newFilter.operator); if (this._columnFilters[columnDef.id]) { searchTerms = this._columnFilters[columnDef.id].searchTerms || undefined;