| ... |
... |
@@ -64,6 +64,7 @@ |
| 64 |
64 |
this.clearResults(); |
| 65 |
65 |
this.prevSearchText = this.searchText; |
| 66 |
66 |
this.fetchWikiSearch().then(results => { |
|
67 |
+ console.log(results); |
| 67 |
67 |
this.resultsCache = results; |
| 68 |
68 |
if(this.hasActiveFilters()) { |
| 69 |
69 |
this.fetchFilterSearch().then(this.filterResults); |
| ... |
... |
@@ -71,6 +71,16 @@ |
| 71 |
71 |
this.results = results; |
| 72 |
72 |
} |
| 73 |
73 |
}) |
|
75 |
+ /* |
|
76 |
+ Promise.all([ |
|
77 |
+ this.fetchWikiSearch(), |
|
78 |
+ this.fetchFilterSearch() |
|
79 |
+ ]).then(([wikiSearchResults, collabSearchResults]) => { |
|
80 |
+ this.results = wikiSearchResults; |
|
81 |
+ this.resultsCache = wikiSearchResults; |
|
82 |
+ console.log(wikiSearchResults, collabSearchResults); |
|
83 |
+ }); |
|
84 |
+ */ |
| 74 |
74 |
} else if (this.searchText === this.prevSearchText && this.hasActiveFilters()) { |
| 75 |
75 |
this.fetchFilterSearch().then(this.filterResults) |
| 76 |
76 |
} else { |