From 484e85d4448cd56d096a1b234d2a98a638e08c77 Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Thu, 12 Sep 2024 13:40:10 -0400
Subject: fixed removing a face image from a face doc

---
 src/client/views/search/FaceRecognitionHandler.tsx | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'src/client/views/search/FaceRecognitionHandler.tsx')

diff --git a/src/client/views/search/FaceRecognitionHandler.tsx b/src/client/views/search/FaceRecognitionHandler.tsx
index 4f6f5d314..636a44984 100644
--- a/src/client/views/search/FaceRecognitionHandler.tsx
+++ b/src/client/views/search/FaceRecognitionHandler.tsx
@@ -119,8 +119,7 @@ export class FaceRecognitionHandler {
      * @param faceDoc - unique face Doc
      */
     public static UniqueFaceRemoveFaceImage = (faceAnno: Doc, faceDoc: Doc) => {
-        Doc.RemoveDocFromList(faceDoc[DocData], 'face_annos', faceAnno);
-        faceAnno.face = undefined;
+        FaceRecognitionHandler.ImageDocFaceAnnos(faceAnno).forEach(face => Doc.RemoveDocFromList(faceDoc[DocData], 'face_annos', face) && (face.face = undefined));
     };
 
     constructor() {
-- 
cgit v1.2.3-70-g09d2

