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