diff --git a/src/frontend/app/ui/gallery/filter/filter.service.ts b/src/frontend/app/ui/gallery/filter/filter.service.ts index a855e3da..6d7ed987 100644 --- a/src/frontend/app/ui/gallery/filter/filter.service.ts +++ b/src/frontend/app/ui/gallery/filter/filter.service.ts @@ -37,7 +37,7 @@ export class FilterService { }, { name: $localize`Faces`, - mapFn: (m: PhotoDTO): string[] => m.metadata.faces?.map(f => f.name), + mapFn: (m: PhotoDTO): string[] => (m.metadata.faces ? m.metadata.faces.map(f => f.name) : ['<' + $localize`no face` + '>']), renderType: FilterRenderType.enum, isArrayValue: true, },