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:
Abbey Campbell
2025-12-17 10:51:51 -08:00
committed by GitHub

View File

@@ -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(
{ {