Skip to content

Commit

Permalink
Fixing bug which renders the frontend unable to handle multi-target t…
Browse files Browse the repository at this point in the history
…asks
  • Loading branch information
sauterl committed May 27, 2024
1 parent b832cd4 commit af1a89c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/app/services/pipes/filter-not-in.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit af1a89c

Please sign in to comment.