diff options
| author | srichman333 <sarah_n_richman@brown.edu> | 2023-11-30 01:38:05 -0500 |
|---|---|---|
| committer | srichman333 <sarah_n_richman@brown.edu> | 2023-11-30 01:38:05 -0500 |
| commit | fa2d4e4e66f7f1de51a579b3a121ca1a2a7d56a8 (patch) | |
| tree | d22235ee26e0a26089aa0e1ff6a49890d6e7e79e /src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx | |
| parent | 88971a7730549e2b906688d21792a23fc2f39e8d (diff) | |
drag onto canvas
Diffstat (limited to 'src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx')
| -rw-r--r-- | src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx index e1ff4fda3..19689f972 100644 --- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx +++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx @@ -1997,10 +1997,10 @@ ScriptingGlobals.add(function datavizFromSchema(doc: Doc) { const loading = Docs.Create.LoadingDocument(file, options); loading.presentation_openInLightbox = true; DocUtils.uploadFileToDoc(file, {}, loading); - // if (view.ComponentView?.addDocument) view.ComponentView?.addDocument(loading); if (view.ComponentView?.addDocument) { - SchemaCSVPopUp.Instance.addToCollection = view.ComponentView?.addDocument; + SchemaCSVPopUp.Instance.setView(view); + SchemaCSVPopUp.Instance.setTarget(view.rootDoc); SchemaCSVPopUp.Instance.setDataVizDoc(loading); SchemaCSVPopUp.Instance.setVisible(true); } |
