[Glitch] Fix "You might be interested in" flashing while searching in web UI

Port 0a3fa034fc to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Eugen Rochko
2021-05-06 02:11:43 +02:00
committed by Claire
parent b571bc3278
commit 5fa4138bd8
2 changed files with 8 additions and 1 deletions

View File

@ -32,6 +32,7 @@ export function submitSearch() {
const value = getState().getIn(['search', 'value']);
if (value.length === 0) {
dispatch(fetchSearchSuccess({ accounts: [], statuses: [], hashtags: [] }, ''));
return;
}