Fixed bug where visit/trip info was missing
This commit is contained in:
@@ -76,8 +76,7 @@ function CitiesProvider({ children }) {
|
||||
dispatch({ type: "loading" });
|
||||
try {
|
||||
const response = await axios.get(`${API_URL}/get_item?id=${id}`);
|
||||
const res = await response.data.json();
|
||||
|
||||
const res = await response.data;
|
||||
dispatch({ type: "city/loaded", payload: res });
|
||||
} catch {
|
||||
dispatch({
|
||||
|
||||
Reference in New Issue
Block a user