mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
search fix
This commit is contained in:
parent
7abb3741fc
commit
e0126e7237
@ -19,16 +19,7 @@ export default class Search extends Component<SearchProps, SearchState> {
|
||||
|
||||
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 })
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user