Don't submit search if query is empty
parent
4effa88aec
commit
d3f525ab28
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue