diff --git a/src/routes/Search.tsx b/src/routes/Search.tsx index 901437f..fb5c4f1 100644 --- a/src/routes/Search.tsx +++ b/src/routes/Search.tsx @@ -19,16 +19,7 @@ export default class Search extends Component { public async componentDidMount() { const searchParams = queryString.parse(this.props.location.search) - const queryRequest: any = { - offset: 100, - page: 0, - query: { - $text: { - $search: searchParams.q - } - } - } - const assets = await this.context.ocean.searchAssets(queryRequest) + const assets = await this.context.ocean.assets.search(searchParams.q) this.setState({ results: assets }) }