diff options
author | alyssaf16 <alyssa_feinberg@brown.edu> | 2024-04-17 13:17:51 -0400 |
---|---|---|
committer | alyssaf16 <alyssa_feinberg@brown.edu> | 2024-04-17 13:17:51 -0400 |
commit | c5b2912cc4f44c5e12d8b5dc123d99bf9c4d9b85 (patch) | |
tree | f61ca56109ac51161f2877c4dc3038e9d5b91b9c /src/client/views/pdf/PDFViewer.tsx | |
parent | e95d25eb8159bb7c753fa27e74e9baa8d3bffea6 (diff) |
ai flashcards
Diffstat (limited to 'src/client/views/pdf/PDFViewer.tsx')
-rw-r--r-- | src/client/views/pdf/PDFViewer.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/pdf/PDFViewer.tsx b/src/client/views/pdf/PDFViewer.tsx index 7d8529a1c..cecaf17ff 100644 --- a/src/client/views/pdf/PDFViewer.tsx +++ b/src/client/views/pdf/PDFViewer.tsx @@ -417,6 +417,7 @@ export class PDFViewer extends ObservableReactComponent<IViewerProps> { // Changing which document to add the annotation to (the currently selected PDF) GPTPopup.Instance.setSidebarId('data_sidebar'); GPTPopup.Instance.addDoc = this._props.sidebarAddDoc; + AnchorMenu.Instance.addToCollection = this._props.DocumentView?.()._props.addDocument; // const newDoc = Docs.Create.ComparisonDocument({ _layout_isFlashcard: true, _width: 300, _height: 300 }); // this.props.addDocument?.(newDoc); }; |