aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-08-21 17:12:35 -0400
committerbobzel <zzzman@gmail.com>2024-08-21 17:12:35 -0400
commit4091d1681437527bfb55cb79570e8b652e9b190f (patch)
treeb1e7167aa2cc8ea59f5d29141ca72e0ddbebefaa /src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx
parent25ee9e6b3f7da67bcf94eb2affd5793c67777930 (diff)
from last
Diffstat (limited to 'src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx')
-rw-r--r--src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx b/src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx
index 94f9a3c94..dd8dea41e 100644
--- a/src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx
+++ b/src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx
@@ -70,7 +70,10 @@ export class FaceDocumentItem extends ObservableReactComponent<FaceDocumentProps
);
// assign the face in the image that's closest to the face collection to be the face that's assigned to the collection
- face_match && FaceRecognitionHandler.ImageDocAddFace(imgDoc, face_match, this._props.faceDoc);
+ if (face_match) {
+ FaceRecognitionHandler.ImageDocAddFace(imgDoc, face_match, this._props.faceDoc);
+ FaceRecognitionHandler.FaceDocAddImageDocFace(imgDoc, face_match, this._props.faceDoc);
+ }
}
});
return false;