Revert "Don't autocomplete for empty string search"

This reverts commit 72187ca51e.
This commit is contained in:
Sean Yesmunt 2020-09-10 11:30:42 -04:00
parent 72187ca51e
commit cb0918726e

View file

@ -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);