mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2025-12-23 22:18:36 -05:00
Merge pull request #3302 from inaturalist/mob-1035-crash-on-explore-filters-user-search-on-certain-search
make user list an array by default
This commit is contained in:
@@ -34,7 +34,7 @@ const ExploreUserSearch = ( { closeModal, updateUser }: Props ): Node => {
|
|||||||
const currentUser = useCurrentUser();
|
const currentUser = useCurrentUser();
|
||||||
|
|
||||||
// TODO: replace this with infinite scroll like ExploreFlashList
|
// TODO: replace this with infinite scroll like ExploreFlashList
|
||||||
const { data: userList, isLoading, refetch } = useAuthenticatedQuery(
|
const { data: userList = [], isLoading, refetch } = useAuthenticatedQuery(
|
||||||
["fetchSearchResults", userQuery],
|
["fetchSearchResults", userQuery],
|
||||||
optsWithAuth => fetchSearchResults(
|
optsWithAuth => fetchSearchResults(
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user