diff --git a/frontend/src/app/services/pipes/filter-not-in.pipe.ts b/frontend/src/app/services/pipes/filter-not-in.pipe.ts index e8d3e697..46eabf39 100644 --- a/frontend/src/app/services/pipes/filter-not-in.pipe.ts +++ b/frontend/src/app/services/pipes/filter-not-in.pipe.ts @@ -18,7 +18,7 @@ export class FilterNotInPipe implements PipeTransform { transform(value: any[], haystack: any[], propertyKey : string = null): any[] { if(value){ if(propertyKey){ - return value.filter(it => !haystack.map(item => item[propertyKey]).includes(it[propertyKey])) + return value.filter(it => !haystack.map(item => item != null && item[propertyKey]).includes(it[propertyKey])) } return value.filter(it => !haystack.includes(it)); }else{