that was a bad idea
This commit is contained in:
+2
-6
@@ -666,13 +666,10 @@
|
|||||||
suggest(input) {
|
suggest(input) {
|
||||||
input = input.trim();
|
input = input.trim();
|
||||||
if (input === '') this._clearSuggestions();
|
if (input === '') this._clearSuggestions();
|
||||||
let suggestions = [];
|
|
||||||
|
|
||||||
for (const influencer of this._getInfluencerPromises(input)) {
|
Promise.all(this._getInfluencerPromises(input)).then(res => {
|
||||||
influencer.then(res => {
|
const suggestions = this._flattenAndUnique(res);
|
||||||
suggestions = this._flattenAndUnique([...suggestions, ...res]);
|
|
||||||
this._clearSuggestions();
|
this._clearSuggestions();
|
||||||
|
|
||||||
if (suggestions.length) {
|
if (suggestions.length) {
|
||||||
this._appendSuggestions(suggestions, input);
|
this._appendSuggestions(suggestions, input);
|
||||||
this._registerSuggestionEvents();
|
this._registerSuggestionEvents();
|
||||||
@@ -680,7 +677,6 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
_appendSuggestions(suggestions, input) {
|
_appendSuggestions(suggestions, input) {
|
||||||
suggestions.some((suggestion, i) => {
|
suggestions.some((suggestion, i) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user