diff options
author | Sophie Zhang <sophie_zhang@brown.edu> | 2023-07-20 00:54:07 -0400 |
---|---|---|
committer | Sophie Zhang <sophie_zhang@brown.edu> | 2023-07-20 00:54:07 -0400 |
commit | 078d595cb498592667a653a937b8ba25bcbf41bb (patch) | |
tree | 999f99e69d9122e4ce0f1f10bd7ba58782883d08 /src/client/views/pdf/PDFViewer.tsx | |
parent | 40784b7265851b27e043c07e5f9038a0b29af8b7 (diff) |
refactoring gpt functionalities
Diffstat (limited to 'src/client/views/pdf/PDFViewer.tsx')
-rw-r--r-- | src/client/views/pdf/PDFViewer.tsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/views/pdf/PDFViewer.tsx b/src/client/views/pdf/PDFViewer.tsx index 0fd93868a..4fc31ffe3 100644 --- a/src/client/views/pdf/PDFViewer.tsx +++ b/src/client/views/pdf/PDFViewer.tsx @@ -423,6 +423,11 @@ export class PDFViewer extends React.Component<IViewerProps> { // Changing which document to add the annotation to (the currently selected PDF) GPTPopup.Instance.setSidebarId('data_sidebar'); + const anchor = this._getAnchor(undefined, false); + if (anchor) { + console.log(anchor); + GPTPopup.Instance.setPdfAnchor(anchor); + } GPTPopup.Instance.addDoc = this.props.sidebarAddDoc; }; |