Optimize search
This commit is contained in:
parent
3001dcc1a6
commit
cd3f7adcfb
|
@ -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 = () => {
|
||||
|
|
Loading…
Reference in New Issue