Optimize search

This commit is contained in:
Wisani Shilumani 2018-07-13 13:05:06 +02:00
parent 3001dcc1a6
commit cd3f7adcfb
1 changed files with 1 additions and 3 deletions

View File

@ -74,6 +74,7 @@ class BrowseArchives extends React.Component {
// Using static full interviews data array for now
this.setState({
searchResults,
debounceTerm: this.state.term,
});
}
@ -96,9 +97,6 @@ class BrowseArchives extends React.Component {
getSearchResultsDebounce = _.debounce(() => {
const { term } = this.state;
this.getSearchResults(term);
this.setState({
debounceTerm: term,
});
}, 700);
clearSearchInput = () => {