From 9de3258296f7397f70881f8c9bae7f2b130075b3 Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Wed, 16 Jul 2025 23:49:06 +0200 Subject: [PATCH] Fixed bug where visit/trip info was missing --- src/contexts/CitiesContext.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/contexts/CitiesContext.jsx b/src/contexts/CitiesContext.jsx index be0b2ce..5c3fd29 100644 --- a/src/contexts/CitiesContext.jsx +++ b/src/contexts/CitiesContext.jsx @@ -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({