From d0fccd1050f5d6ccc24c1e4d2b7d1c0ed94fb2a7 Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Sun, 23 Mar 2025 10:27:28 -0400
Subject: updated more [DocData] to .$ things

---
 src/client/views/nodes/LinkBox.tsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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

diff --git a/src/client/views/nodes/LinkBox.tsx b/src/client/views/nodes/LinkBox.tsx
index d5dc256d9..8bf65b637 100644
--- a/src/client/views/nodes/LinkBox.tsx
+++ b/src/client/views/nodes/LinkBox.tsx
@@ -252,7 +252,7 @@ export class LinkBox extends ViewBoxBaseComponent<FieldViewProps>() {
                                     fontSize={fontSize}
                                     GetValue={() => linkDesc}
                                     SetValue={action(val => {
-                                        this.Document[DocData].link_description = val;
+                                        this.Document.$link_description = val;
                                         return true;
                                     })}
                                 />
@@ -262,8 +262,8 @@ export class LinkBox extends ViewBoxBaseComponent<FieldViewProps>() {
                                     background={color}
                                     color={fontColor || lightOrDark(DashColor(color).fade(0.5).toString())}
                                     type={Type.PRIM}
-                                    val={StrCast(this.Document[DocData].link_description)}
-                                    setVal={action(val => (this.Document[DocData].link_description = val))}
+                                    val={StrCast(this.Document.$link_description)}
+                                    setVal={action(val => (this.Document.$link_description = val))}
                                     fillWidth
                                 /> */}
                             </div>
-- 
cgit v1.2.3-70-g09d2


From 6aa7649ea9195cf3fc53cf70e126095a9045e057 Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Tue, 22 Apr 2025 10:58:03 -0400
Subject: from last

---
 src/client/views/nodes/LinkBox.tsx                                      | 1 +
 .../views/nodes/imageEditor/imageMeshTool/imageMeshToolButton.tsx       | 2 +-
 src/client/views/nodes/scrapbook/ScrapbookBox.tsx                       | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

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

diff --git a/src/client/views/nodes/LinkBox.tsx b/src/client/views/nodes/LinkBox.tsx
index 8bf65b637..78c8a686c 100644
--- a/src/client/views/nodes/LinkBox.tsx
+++ b/src/client/views/nodes/LinkBox.tsx
@@ -128,6 +128,7 @@ export class LinkBox extends ViewBoxBaseComponent<FieldViewProps>() {
             const getAnchor = (field: FieldResult): Element[] => {
                 const docField = DocCast(field);
                 const doc = docField?.layout_unrendered ? DocCast(docField.annotationOn, docField) : docField;
+                if (!doc) return [];
                 const ele = document.getElementById(DocumentView.UniquifyId(DocumentView.LightboxContains(this.DocumentView?.()), doc[Id]));
                 if (ele?.className === 'linkBox-label') foundParent = true;
                 if (ele?.getBoundingClientRect().width) return [ele];
diff --git a/src/client/views/nodes/imageEditor/imageMeshTool/imageMeshToolButton.tsx b/src/client/views/nodes/imageEditor/imageMeshTool/imageMeshToolButton.tsx
index eb68410b0..c02a1eb94 100644
--- a/src/client/views/nodes/imageEditor/imageMeshTool/imageMeshToolButton.tsx
+++ b/src/client/views/nodes/imageEditor/imageMeshTool/imageMeshToolButton.tsx
@@ -19,7 +19,7 @@ interface ButtonContainerProps {
 
 export function MeshTransformButton({
     loading,
-    onClick: startMeshTransform,
+    onClick,
     onReset,
     btnText,
     imageWidth,
diff --git a/src/client/views/nodes/scrapbook/ScrapbookBox.tsx b/src/client/views/nodes/scrapbook/ScrapbookBox.tsx
index b02976067..24946f4d2 100644
--- a/src/client/views/nodes/scrapbook/ScrapbookBox.tsx
+++ b/src/client/views/nodes/scrapbook/ScrapbookBox.tsx
@@ -60,7 +60,7 @@ export class ScrapbookBox extends ViewBoxAnnotatableComponent<FieldViewProps>()
         }
         return false;
     };
-    rejectDrop = (draggedDoc: Doc[] | undefined, subView?: DocumentView) => {
+    rejectDrop = (draggedDoc: Doc[] | undefined /* , subView?: DocumentView */) => {
         if (draggedDoc?.length === 1 && draggedDoc[0].$type !== DocumentType.IMG) {
             return true;
         }
-- 
cgit v1.2.3-70-g09d2

