From cdb21e036ff65d63991a53798133407be1d5755f Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Tue, 20 Aug 2024 21:30:32 -0400
Subject: fixed error handling of images too big to load.  cleaned up
 facecollectionbox.  changed metadata field naming to match conventions.

---
 src/client/views/nodes/FaceRectangles.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/client/views/nodes/FaceRectangles.tsx')

diff --git a/src/client/views/nodes/FaceRectangles.tsx b/src/client/views/nodes/FaceRectangles.tsx
index ade4225d9..19aa90a8b 100644
--- a/src/client/views/nodes/FaceRectangles.tsx
+++ b/src/client/views/nodes/FaceRectangles.tsx
@@ -4,6 +4,7 @@ import { Doc, DocListCast } from '../../../fields/Doc';
 import { Id } from '../../../fields/FieldSymbols';
 import { Cast, NumCast } from '../../../fields/Types';
 import FaceRectangle from './FaceRectangle';
+import { FaceRecognitionHandler } from '../search/FaceRecognitionHandler';
 
 interface FaceRectanglesProps {
     document: Doc;
@@ -19,7 +20,7 @@ export interface RectangleTemplate {
 @observer
 export class FaceRectangles extends React.Component<FaceRectanglesProps> {
     render() {
-        const faces = DocListCast(this.props.document.faces);
+        const faces = DocListCast(this.props.document[FaceRecognitionHandler.FacesField(this.props.document)]);
         const templates: RectangleTemplate[] = faces.map(faceDoc => {
             const rectangle = Cast(faceDoc.faceRectangle, Doc) as Doc;
             const style = {
-- 
cgit v1.2.3-70-g09d2

