Fixed bug where visit/trip info was missing

This commit is contained in:
2025-07-16 23:49:06 +02:00
parent 9c7ed76e4a
commit 9de3258296

View File

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