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