aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/pdf
diff options
context:
space:
mode:
authorSophie Zhang <sophie_zhang@brown.edu>2023-08-13 17:02:58 -0400
committerSophie Zhang <sophie_zhang@brown.edu>2023-08-13 17:02:58 -0400
commit314f62bb5335e3fb3f25501823d41cf0cdc53cac (patch)
treed9f18a79eb8ea13b55e7b05d52d1da35d10ea62a /src/client/views/pdf
parentd655a8770ae4d4ff3cf08c433ac9068ed975aee4 (diff)
update
Diffstat (limited to 'src/client/views/pdf')
-rw-r--r--src/client/views/pdf/GPTPopup/GPTPopup.tsx4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client/views/pdf/GPTPopup/GPTPopup.tsx b/src/client/views/pdf/GPTPopup/GPTPopup.tsx
index aeee90d16..fc6fc1af8 100644
--- a/src/client/views/pdf/GPTPopup/GPTPopup.tsx
+++ b/src/client/views/pdf/GPTPopup/GPTPopup.tsx
@@ -124,9 +124,7 @@ export class GPTPopup extends React.Component<GPTPopupProps> {
* Transfers the image urls to actual image docs
*/
private transferToImage = (source: string) => {
- console.log('Text Anchor', this.textAnchor);
- console.log('Whole doc anchor', this.imgTargetDoc);
- const textAnchor = this.textAnchor ?? this.imgTargetDoc;
+ const textAnchor = this.imgTargetDoc;
if (!textAnchor) return;
const newDoc = Docs.Create.ImageDocument(source, {
x: NumCast(textAnchor.x) + NumCast(textAnchor._width) + 10,