From 66f705ed9bbf5e8f0fdac8c893b693b0edda29e8 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Mon, 6 May 2024 19:32:57 +0530 Subject: [PATCH] Use the correct key --- web/apps/photos/src/components/ml/PeopleList.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/web/apps/photos/src/components/ml/PeopleList.tsx b/web/apps/photos/src/components/ml/PeopleList.tsx index 09d9ebaafe..3748c0d8c3 100644 --- a/web/apps/photos/src/components/ml/PeopleList.tsx +++ b/web/apps/photos/src/components/ml/PeopleList.tsx @@ -58,7 +58,7 @@ export const PeopleList = React.memo((props: PeopleListProps) => { } > @@ -137,7 +137,7 @@ export function UnidentifiedFaces(props: { faces.map((face, index) => ( @@ -148,12 +148,12 @@ export function UnidentifiedFaces(props: { } interface FaceCropImageViewProps { - faceId: string; + faceID: string; cacheKey?: string; } const FaceCropImageView: React.FC = ({ - faceId, + faceID, cacheKey, }) => { const [objectURL, setObjectURL] = useState(); @@ -162,9 +162,9 @@ const FaceCropImageView: React.FC = ({ let didCancel = false; const electron = globalThis.electron; - if (cacheKey && electron) { + if (faceID && electron) { electron - .legacyFaceCrop(cacheKey) + .legacyFaceCrop(faceID) /* cachedOrNew("face-crops", cacheKey, async () => { const user = await ensureLocalUser(); @@ -184,7 +184,7 @@ const FaceCropImageView: React.FC = ({ didCancel = true; if (objectURL) URL.revokeObjectURL(objectURL); }; - }, [faceId, cacheKey]); + }, [faceID, cacheKey]); return objectURL ? (