aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/WebBox.tsx5
-rw-r--r--src/client/views/pdf/GPTPopup/GPTPopup.tsx7
2 files changed, 0 insertions, 12 deletions
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;
}
}
diff --git a/src/client/views/pdf/GPTPopup/GPTPopup.tsx b/src/client/views/pdf/GPTPopup/GPTPopup.tsx
index 034470c6e..8bf626d73 100644
--- a/src/client/views/pdf/GPTPopup/GPTPopup.tsx
+++ b/src/client/views/pdf/GPTPopup/GPTPopup.tsx
@@ -88,13 +88,6 @@ export class GPTPopup extends React.Component<GPTPopupProps> {
this.sidebarId = id;
};
- // pdfs and webpages
- @observable
- private targetAnchor: Doc | undefined;
- @action
- public setTargetAnchor = (anchor: Doc) => {
- this.targetAnchor = anchor;
- };
@observable
private imgTargetDoc: Doc | undefined;