about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/view/screens/SearchMobile.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/view/screens/SearchMobile.tsx b/src/view/screens/SearchMobile.tsx
index 6a2fca5bc..3b5f771a5 100644
--- a/src/view/screens/SearchMobile.tsx
+++ b/src/view/screens/SearchMobile.tsx
@@ -79,6 +79,8 @@ export const SearchScreen = withAuthRequired(
     }, [setQuery, autocompleteView, store])
 
     const onSubmitQuery = React.useCallback(() => {
+      if (query.length === 0) return
+
       const model = new SearchUIModel(store)
       model.fetch(query)
       setSearchUIModel(model)