diff options
| author | bobzel <zzzman@gmail.com> | 2023-08-23 20:56:42 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-08-23 20:56:42 -0400 |
| commit | 288a74c91d9f8eecbae68fd6b2fe1e18ed2254e7 (patch) | |
| tree | a1581c1f633543a99ece2c0b0ffc72953b7423ef /src/client/views/collections/CollectionSubView.tsx | |
| parent | 1bb554c64e235c89db47b7ca5bb86a5edfb13ec8 (diff) | |
| parent | 1367f56a7898a125d46d9ebfb8cbfe81617180ad (diff) | |
Merge branch 'master' into UI_Update_Eric_Ma
Diffstat (limited to 'src/client/views/collections/CollectionSubView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionSubView.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx index c189ef126..eb4685834 100644 --- a/src/client/views/collections/CollectionSubView.tsx +++ b/src/client/views/collections/CollectionSubView.tsx @@ -298,7 +298,11 @@ export function CollectionSubView<X>(moreProps?: X) { let source = split; if (split.startsWith('data:image') && split.includes('base64')) { const [{ accessPaths }] = await Networking.PostToServer('/uploadRemoteImage', { sources: [split] }); - source = Utils.prepend(accessPaths.agnostic.client); + if (accessPaths.agnostic.client.indexOf("dashblobstore") === -1) { + source = Utils.prepend(accessPaths.agnostic.client); + } else { + source = accessPaths.agnostic.client; + } } if (source.startsWith('http')) { const doc = Docs.Create.ImageDocument(source, { ...options, _width: 300 }); |
