diff options
Diffstat (limited to 'src/client/views/SearchBox.tsx')
| -rw-r--r-- | src/client/views/SearchBox.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/views/SearchBox.tsx b/src/client/views/SearchBox.tsx index 973715876..6995e3c7d 100644 --- a/src/client/views/SearchBox.tsx +++ b/src/client/views/SearchBox.tsx @@ -11,7 +11,7 @@ import { library } from '@fortawesome/fontawesome-svg-core'; // import * as express from 'express'; import { Search } from '../../server/Search'; import * as rp from 'request-promise'; -import { SearchItem } from './SearchItem'; +import { SearchItem } from './search/SearchItem'; import { isString } from 'util'; import { constant } from 'async'; import { DocServer } from '../DocServer'; @@ -56,13 +56,13 @@ export class SearchBox extends React.Component { @action getResults = async (query: string) => { - let response = await rp.get(DocServer.Util.prepend('/search'), { + let response = await rp.get(DocServer.prepend('/search'), { qs: { query } }); let res: string[] = JSON.parse(response); - const fields = await DocServer.getRefFields(res); + const fields = await DocServer.GetRefFields(res); const docs: Doc[] = []; for (const id of res) { const field = fields[id]; @@ -74,7 +74,7 @@ export class SearchBox extends React.Component { } public static async convertDataUri(imageUri: string, returnedFilename: string) { try { - let posting = DocServer.Util.prepend(RouteStore.dataUriToImage); + let posting = DocServer.prepend(RouteStore.dataUriToImage); const returnedUri = await rp.post(posting, { body: { uri: imageUri, |
