1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-23 01:27:14 +02:00

Fixing faces filter #287

This commit is contained in:
Patrik J. Braun 2022-02-19 00:10:11 +01:00
parent 35875b8aad
commit b24d5f4779

View File

@ -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,
},