From 8f8aa3350367feb8ec9a90e3c7fd0b7007562abf Mon Sep 17 00:00:00 2001 From: Tanya Date: Wed, 7 Jan 2026 14:28:34 -0500 Subject: [PATCH] fix: Update null check in PhotoViewerClient component for improved type safety This commit modifies the null check in the `PhotoViewerClient` component to use `!=` instead of `!==`, ensuring that the filter correctly identifies non-null persons. This change enhances type safety and maintains consistency in handling potential null values. --- viewer-frontend/components/PhotoViewerClient.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viewer-frontend/components/PhotoViewerClient.tsx b/viewer-frontend/components/PhotoViewerClient.tsx index e853444..ed2d7e0 100644 --- a/viewer-frontend/components/PhotoViewerClient.tsx +++ b/viewer-frontend/components/PhotoViewerClient.tsx @@ -1075,7 +1075,7 @@ export function PhotoViewerClient({ const peopleNames = (currentPhoto as any).faces ?.map((face: any) => face.Person) - .filter((person: any): person is Person => person !== null) + .filter((person: any): person is Person => person != null) .map((person: Person) => `${person.first_name} ${person.last_name}`.trim()) || []; const tags = (currentPhoto as any).PhotoTagLinkage?.map((pt: any) => pt.Tag.tag_name) || [];