Remove content providers: Add extra condition if a cirteria field is null.

This commit is contained in:
Konstantinos Triantafyllou 2022-11-28 13:19:33 +02:00
parent 0c01154698
commit f518ea4593
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ export class RemoveContentProvidersComponent implements OnInit {
getFiltersAsText(criteria: Criteria[]): string {
let text = criteria.slice(0, 3).map((criterion, index) => (index + 1) + ". " + criterion.constraint.map(constraint => {
let field = this.fields.find(field => field.value === constraint.field).label;
let field = this.fields.find(field => field.value === constraint.field)?.label;
let matchCase = false;
if (!constraint.verb.includes('_caseinsensitive')) {
matchCase = true;