diff options
| author | bobzel <zzzman@gmail.com> | 2024-09-30 11:22:45 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2024-09-30 11:22:45 -0400 |
| commit | 04f1047d81bba00f9258543a8171683bce5272bb (patch) | |
| tree | 2e09704251382f554b0ea7e7c92e1e3a92b1b838 /src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx | |
| parent | b08befda6d7ec07a0e6653ccf5040474886dcd44 (diff) | |
| parent | 22c1885a7469a6d5e94fff279225665a1ef1448b (diff) | |
merged with master
Diffstat (limited to 'src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx')
| -rw-r--r-- | src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx b/src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx index 717081666..534f67927 100644 --- a/src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx +++ b/src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx @@ -179,7 +179,7 @@ export class UniqueFaceBox extends ViewBoxBaseComponent<FieldViewProps>() { ele?.addEventListener('wheel', this.onPassiveWheel, { passive: false }); })}> {FaceRecognitionHandler.UniqueFaceImages(this.Document).map((doc, i) => { - const [name, type] = ImageCast(doc[Doc.LayoutFieldKey(doc)]).url.href.split('.'); + const [name, type] = ImageCast(doc[Doc.LayoutFieldKey(doc)])?.url.href.split('.') ?? ['-missing-', '.png']; return ( <div className="image-wrapper" @@ -264,6 +264,7 @@ export class FaceCollectionBox extends ViewBoxBaseComponent<FieldViewProps>() { isContentActive={returnTrue} isAnyChildContentActive={returnTrue} childHideDecorations={true} + dontCenter="y" /> </div> ); |
