diff options
| author | Sam Wilkins <35748010+samwilkins333@users.noreply.github.com> | 2020-02-12 14:45:49 -0500 |
|---|---|---|
| committer | Sam Wilkins <35748010+samwilkins333@users.noreply.github.com> | 2020-02-12 14:45:49 -0500 |
| commit | 2d76d891cb6a656f3c404d17ffa1cac05e08d115 (patch) | |
| tree | 2043abb369fd3cc10212ed24d470eebfa2bbe8b2 /src/client/views/collections | |
| parent | f94747ea7ee6e51ad2c1efc780e531313ea1a3b9 (diff) | |
| parent | 1ae7bb0792c233d8379e1949f965c864667cf3ae (diff) | |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/client/views/collections')
| -rw-r--r-- | src/client/views/collections/CollectionSubView.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx index 32480ad4e..acab45078 100644 --- a/src/client/views/collections/CollectionSubView.tsx +++ b/src/client/views/collections/CollectionSubView.tsx @@ -315,9 +315,9 @@ export function CollectionSubView<T>(schemaCtor: (doc: Doc) => T) { const dropFileName = file ? file.name : "-empty-"; promises.push(Networking.PostFormDataToServer("/uploadFormData", formData).then(results => { results.map(action((result: any) => { - const { accessPaths, nativeWidth, nativeHeight, contentSize } = result; + const { agnostic, accessPaths, nativeWidth, nativeHeight, contentSize } = result; const full = { ...options, _width: 300, title: dropFileName }; - const pathname = Utils.prepend(accessPaths.agnostic.client); + const pathname = Utils.prepend(accessPaths?.agnostic.client || agnostic.client); Docs.Get.DocumentFromType(type, pathname, full).then(doc => { if (doc) { const proto = Doc.GetProto(doc); |
