Remove content providers: Add extra condition if a cirteria field is null.
This commit is contained in:
parent
0c01154698
commit
f518ea4593
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue