From 859d2d942b7766ed8052ff66be991e4d593982ff Mon Sep 17 00:00:00 2001
From: geireann <geireann.lindfield@gmail.com>
Date: Thu, 24 Aug 2023 12:10:07 -0400
Subject: fixed gpt anno to not create an anchor unless actually requeted.

---
 src/client/views/nodes/WebBox.tsx | 5 -----
 1 file changed, 5 deletions(-)

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

diff --git a/src/client/views/nodes/WebBox.tsx b/src/client/views/nodes/WebBox.tsx
index a1e46b69b..febf8341e 100644
--- a/src/client/views/nodes/WebBox.tsx
+++ b/src/client/views/nodes/WebBox.tsx
@@ -358,11 +358,6 @@ export class WebBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProps
                 AnchorMenu.Instance.jumpTo(e.clientX * scale + mainContBounds.translateX, e.clientY * scale + mainContBounds.translateY - NumCast(this.layoutDoc._layout_scrollTop) * scale);
                 // Changing which document to add the annotation to (the currently selected WebBox)
                 GPTPopup.Instance.setSidebarId(`${this.props.fieldKey}_${this._urlHash}_sidebar`);
-                const anchor = this._getAnchor(undefined, false);
-                if (anchor) {
-                    console.log(anchor);
-                    GPTPopup.Instance.setTargetAnchor(anchor);
-                }
                 GPTPopup.Instance.addDoc = this.sidebarAddDocument;
             }
         }
-- 
cgit v1.2.3-70-g09d2

