Merge branch 'fix-empty-search' of https://github.com/darnfish/social-app into darnfish-fix-empty-search

zio/stable
Paul Frazee 2023-08-22 10:49:53 -07:00
commit 17fcc2f25c
1 changed files with 2 additions and 0 deletions

View File

@ -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)