minor fix

This commit is contained in:
Roman Hotsiy 2020-03-16 15:44:10 +02:00
parent 0a68db1f38
commit 4459f4cda2
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -95,13 +95,12 @@ export class SearchBox extends React.PureComponent<SearchBoxProps, SearchBoxStat
setResults(results: SearchResult[], term: string) {
this.setState({
results,
term,
});
this.props.marker.mark(term);
}
@bind
@debounce(300)
@debounce(400)
searchCallback(searchTerm: string) {
this.props.search.search(searchTerm).then(res => {
this.setResults(res, searchTerm);