fix: reset un-assigned person
This commit is contained in:
parent
bbe86a4632
commit
5a08b7e25e
1 changed files with 3 additions and 1 deletions
|
@ -151,8 +151,10 @@
|
|||
|
||||
const handleAddRemovedFace = (indexToRemove: number) => {
|
||||
$boundingBoxesArray = [];
|
||||
unassignedFaces = unassignedFaces.map((obj) =>
|
||||
obj && obj.id === selectedPersonToUnassign[indexToRemove].id ? null : obj,
|
||||
);
|
||||
selectedPersonToUnassign = selectedPersonToUnassign.filter((_, index) => index !== indexToRemove);
|
||||
peopleWithFaces = peopleWithFaces
|
||||
};
|
||||
|
||||
const handleUnassignFaces = async () => {
|
||||
|
|
Loading…
Reference in a new issue