about summary refs log tree commit diff
path: root/app/javascript/mastodon/actions/search.js
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2021-05-06 02:11:43 +0200
committerGitHub <noreply@github.com>2021-05-06 02:11:43 +0200
commit0a3fa034fc66246dbf9dfb4627a983e0903042d4 (patch)
tree5cb39eb11e17beed0d061a9318112dac319e006b /app/javascript/mastodon/actions/search.js
parent8d75bd002da5011237b537b522a5b6248e99b9d5 (diff)
Fix "You might be interested in" flashing while searching in web UI (#16162)
Diffstat (limited to 'app/javascript/mastodon/actions/search.js')
-rw-r--r--app/javascript/mastodon/actions/search.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/javascript/mastodon/actions/search.js b/app/javascript/mastodon/actions/search.js
index a178faead..37560a74c 100644
--- a/app/javascript/mastodon/actions/search.js
+++ b/app/javascript/mastodon/actions/search.js
@@ -32,6 +32,7 @@ export function submitSearch() {
     const value = getState().getIn(['search', 'value']);
 
     if (value.length === 0) {
+      dispatch(fetchSearchSuccess({ accounts: [], statuses: [], hashtags: [] }, ''));
       return;
     }