FIX: If you go to full page search, stop loading

This commit is contained in:
Robin Ward 2016-08-09 16:11:14 -04:00
parent db3ae803c5
commit 8321bdab4e

View file

@ -161,6 +161,8 @@ export default createWidget('search-menu', {
fullSearch() { fullSearch() {
if (!isValidSearchTerm(searchData.term)) { return; } if (!isValidSearchTerm(searchData.term)) { return; }
searchData.results = [];
searchData.loading = false;
SearchHelper.cancel(); SearchHelper.cancel();
const url = this.fullSearchUrl(); const url = this.fullSearchUrl();
if (url) { if (url) {