Revert "Don't autocomplete for empty string search"
This reverts commit 72187ca51e
.
This commit is contained in:
parent
72187ca51e
commit
cb0918726e
1 changed files with 0 additions and 2 deletions
|
@ -72,8 +72,6 @@ export const doUpdateSearchQuery = (query: string, shouldSkipSuggestions: ?boole
|
||||||
data: { query },
|
data: { query },
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!query) return;
|
|
||||||
|
|
||||||
// Don't fetch new suggestions if the user just added a space
|
// Don't fetch new suggestions if the user just added a space
|
||||||
if (!query.endsWith(' ') || !shouldSkipSuggestions) {
|
if (!query.endsWith(' ') || !shouldSkipSuggestions) {
|
||||||
throttledSearchSuggestions(dispatch, query);
|
throttledSearchSuggestions(dispatch, query);
|
||||||
|
|
Loading…
Reference in a new issue