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
|
// Using static full interviews data array for now
|
||||||
this.setState({
|
this.setState({
|
||||||
searchResults,
|
searchResults,
|
||||||
|
debounceTerm: this.state.term,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -96,9 +97,6 @@ class BrowseArchives extends React.Component {
|
||||||
getSearchResultsDebounce = _.debounce(() => {
|
getSearchResultsDebounce = _.debounce(() => {
|
||||||
const { term } = this.state;
|
const { term } = this.state;
|
||||||
this.getSearchResults(term);
|
this.getSearchResults(term);
|
||||||
this.setState({
|
|
||||||
debounceTerm: term,
|
|
||||||
});
|
|
||||||
}, 700);
|
}, 700);
|
||||||
|
|
||||||
clearSearchInput = () => {
|
clearSearchInput = () => {
|
||||||
|
|
Loading…
Reference in New Issue