Merge branch 'fix-empty-search' of https://github.com/darnfish/social-app into darnfish-fix-empty-search
This commit is contained in:
commit
17fcc2f25c
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue