aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-08-22 15:36:41 -0400
committerbobzel <zzzman@gmail.com>2024-08-22 15:36:41 -0400
commitc9c5514c0607dcacaf8b84ef4a7730a815451d98 (patch)
tree6cbec7b93242d6cb70db81340ebfd618f1984ce5 /src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx
parentf18978c507dd4c9c0940a1ce17daa2e7000bccdd (diff)
from last
Diffstat (limited to 'src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx')
-rw-r--r--src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx b/src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx
index 46d90db86..de7c2c027 100644
--- a/src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx
+++ b/src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx
@@ -75,7 +75,7 @@ export class UniqueFaceView extends ObservableReactComponent<UniqueFaceProps> {
const match = faceMatcher.matchDescriptor(new Float32Array(Array.from(face)));
return match.distance < prev.dist ? { dist: match.distance, face_match: face } : prev;
},
- { dist: 1, face_match: new List<number>() as Opt<List<number>> }
+ { 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