From 8aede9e575b080919ea39593de56911e8973419d Mon Sep 17 00:00:00 2001 From: martabal <74269598+martabal@users.noreply.github.com> Date: Wed, 6 Dec 2023 18:43:01 +0100 Subject: [PATCH] fix: reset re-assigning selected un-assigned face --- web/src/lib/components/faces-page/person-side-panel.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/lib/components/faces-page/person-side-panel.svelte b/web/src/lib/components/faces-page/person-side-panel.svelte index b2e2cf4c7..46f63fbed 100644 --- a/web/src/lib/components/faces-page/person-side-panel.svelte +++ b/web/src/lib/components/faces-page/person-side-panel.svelte @@ -163,8 +163,8 @@ if (selectedPersonToRemove[i]) { const image = await zoomImageToBase64(peopleWithFaces[i], $photoViewer); if (image) { - unassignedFaces[i] = { ...peopleWithFaces[i], customThumbnail: image }; selectedPersonToUnassign.push(peopleWithFaces[i]); + selectedPersonToUnassign = selectedPersonToUnassign; if (selectedPersonToReassign[i]) { selectedPersonToReassign[i] = null; } @@ -177,6 +177,7 @@ const uniqueIds = new Set(selectedPersonToUnassign.map((objA) => objA.id)); selectedPersonToAdd = selectedPersonToAdd.filter((objB) => !uniqueIds.has(objB.id)); } + selectedPersonToRemove = new Array(peopleWithFaces.length); isSelectingFaces = false; };