How to fix useQuery() expected an object, not an array in React | DevErrors