aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionFreeForm
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-08-27 08:23:04 -0400
committerbobzel <zzzman@gmail.com>2024-08-27 08:23:04 -0400
commit248f9fdced99a36c28fb34f39b78e1267ec02486 (patch)
tree3a566e78f234ff3b01050a74ae6b9b3f2b8c6b14 /src/client/views/collections/collectionFreeForm
parent5180a22ad70cb79ff2167a3aa0a63962ec6b0319 (diff)
allow non-faces to be added to face collections
Diffstat (limited to 'src/client/views/collections/collectionFreeForm')
-rw-r--r--src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx b/src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx
index 7e47292e5..ea1c22962 100644
--- a/src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx
+++ b/src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx
@@ -102,10 +102,8 @@ export class UniqueFaceBox extends ViewBoxBaseComponent<FieldViewProps>() {
{ dist: 1, face_match: undefined as Opt<List<number>> }
);
- // assign the face in the image that's closest to the face collection to be the face that's assigned to the collection
- if (face_match) {
- FaceRecognitionHandler.UniqueFaceAddFaceImage(imgDoc, face_match, this.Document);
- }
+ // assign the face in the image that's closest to the face collection's face
+ FaceRecognitionHandler.UniqueFaceAddFaceImage(imgDoc, face_match, this.Document);
}
});
e.stopPropagation();