Changes for page Context Search
Last modified by bougault on 2023/02/20 16:29
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -70,11 +70,12 @@ 70 70 this.clearResults(); 71 71 this.prevSearchText = this.searchText; 72 72 this.fetchWikiSearch().then(results => { 73 - this.resultsCache = results; 73 + console.log('results', results); 74 + //this.resultsCache = results; 74 74 if(this.hasActiveFilters()) { 75 75 this.fetchFilterSearch().then(this.filterResults); 76 76 } else { 77 - this.results = results; 78 + this.results = results ? results : []; 78 78 } 79 79 }) 80 80 /*} else if (this.searchText === this.prevSearchText && this.hasActiveFilters()) {