fix: reset re-assigning selected un-assigned face

This commit is contained in:
martabal 2023-12-06 18:43:01 +01:00
parent 5a08b7e25e
commit 8aede9e575
No known key found for this signature in database
GPG key ID: C00196E3148A52BD

View file

@ -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<boolean>(peopleWithFaces.length);
isSelectingFaces = false;
};