| ... |
... |
@@ -43,7 +43,6 @@ |
| 43 |
43 |
this.rolesFilter = []; |
| 44 |
44 |
this.filterUrl = new URL(`${document.location.origin}/rest/v1/collabs?search=&offset=0&orderField=title&order=asc&limit=10000&favorite=false&roles=`); |
| 45 |
45 |
this.results = []; |
| 46 |
|
- this.resultsCache = []; |
| 47 |
47 |
} |
| 48 |
48 |
toggleRoleFilter(roleName) { |
| 49 |
49 |
if(this.rolesFilter.indexOf(roleName) === -1) { |
| ... |
... |
@@ -62,6 +62,8 @@ |
| 62 |
62 |
|
| 63 |
63 |
if(this.searchText !== "") { |
| 64 |
64 |
if(this.searchText !== this.prevSearchText) { |
|
64 |
+ console.log("1st") |
|
65 |
+ console.log(this.searchText, this.prevSearchText); |
| 65 |
65 |
this.prevSearchText = this.searchText; |
| 66 |
66 |
Promise.all([ |
| 67 |
67 |
this.fetchWikiSearch(), |
| ... |
... |
@@ -68,7 +68,6 @@ |
| 68 |
68 |
this.fetchFilterSearch() |
| 69 |
69 |
]).then(([wikiSearchResults, collabSearchResults]) => { |
| 70 |
70 |
this.results = wikiSearchResults; |
| 71 |
|
- this.resultsCache = wikiSearchResults; |
| 72 |
72 |
console.log(wikiSearchResults, collabSearchResults); |
| 73 |
73 |
}); |
| 74 |
74 |
} else if (this.searchText === this.prevSearchText && this.hasActiveFilters()) { |