diff options
| author | Sam Wilkins <35748010+samwilkins333@users.noreply.github.com> | 2019-12-02 12:21:09 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-02 12:21:09 -0500 |
| commit | 0595f93dde717b7b6990e9a81c5b43a73a3808d5 (patch) | |
| tree | af03ac257a5584f9913f120c44d4d39bb13916f2 /src/client/views/search | |
| parent | 68f49ef5daf3bf5c47d1d21c8f1cd2097947d071 (diff) | |
| parent | ae76fd39a6530ac055948bb7b98537d38b592ef6 (diff) | |
Merge pull request #316 from browngraphicslab/server_refactor
Server refactor
Diffstat (limited to 'src/client/views/search')
| -rw-r--r-- | src/client/views/search/SearchBox.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/views/search/SearchBox.tsx b/src/client/views/search/SearchBox.tsx index 5c1bd8ef9..ff35542ed 100644 --- a/src/client/views/search/SearchBox.tsx +++ b/src/client/views/search/SearchBox.tsx @@ -8,7 +8,6 @@ import * as rp from 'request-promise'; import { Doc } from '../../../new_fields/Doc'; import { Id } from '../../../new_fields/FieldSymbols'; import { Cast, NumCast } from '../../../new_fields/Types'; -import { RouteStore } from '../../../server/RouteStore'; import { Utils } from '../../../Utils'; import { Docs } from '../../documents/Documents'; import { SetupDrag } from '../../util/DragManager'; @@ -90,7 +89,7 @@ export class SearchBox extends React.Component { public static async convertDataUri(imageUri: string, returnedFilename: string) { try { - let posting = Utils.prepend(RouteStore.dataUriToImage); + let posting = Utils.prepend("/uploadURI"); const returnedUri = await rp.post(posting, { body: { uri: imageUri, |
