diff --git a/src/ui/components/results/resultscomponent.js b/src/ui/components/results/resultscomponent.js index 12f0dfbe1..ecc726708 100644 --- a/src/ui/components/results/resultscomponent.js +++ b/src/ui/components/results/resultscomponent.js @@ -70,7 +70,7 @@ export default class ResultsComponent extends Component { setState (data, val) { const searchState = data.searchState || SearchStates.PRE_SEARCH; - return super.setState(Object.assign({}, data, { + return super.setState(Object.assign({ results: [] }, data, { isPreSearch: searchState === SearchStates.PRE_SEARCH, isSearchLoading: searchState === SearchStates.SEARCH_LOADING, isSearchComplete: searchState === SearchStates.SEARCH_COMPLETE, diff --git a/src/ui/components/results/universalresultscomponent.js b/src/ui/components/results/universalresultscomponent.js index f91d6d776..d397045ff 100644 --- a/src/ui/components/results/universalresultscomponent.js +++ b/src/ui/components/results/universalresultscomponent.js @@ -28,7 +28,7 @@ export default class UniversalResultsComponent extends Component { setState (data, val) { const searchState = data.searchState || SearchStates.PRE_SEARCH; - return super.setState(Object.assign({}, data, { + return super.setState(Object.assign({ sections: [] }, data, { isPreSearch: searchState === SearchStates.PRE_SEARCH, isSearchLoading: searchState === SearchStates.SEARCH_LOADING, isSearchComplete: searchState === SearchStates.SEARCH_COMPLETE