From b24d5f4779735c6c3b0c692913e6c0396ea002e4 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Sat, 19 Feb 2022 00:10:11 +0100 Subject: [PATCH] Fixing faces filter #287 --- src/frontend/app/ui/gallery/filter/filter.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, },