From e660cca284fdb729af8c28d1e326f53cc9aae2cd Mon Sep 17 00:00:00 2001 From: Maurice Date: Tue, 24 Mar 2026 21:50:25 +0100 Subject: [PATCH] Fix route not updating after deleting a place --- client/src/pages/TripPlannerPage.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/pages/TripPlannerPage.jsx b/client/src/pages/TripPlannerPage.jsx index c397c8b..5e200c9 100644 --- a/client/src/pages/TripPlannerPage.jsx +++ b/client/src/pages/TripPlannerPage.jsx @@ -228,6 +228,7 @@ export default function TripPlannerPage() { try { await tripStore.deletePlace(tripId, placeId) if (selectedPlaceId === placeId) setSelectedPlaceId(null) + updateRouteForDay(selectedDayId) toast.success(t('trip.toast.placeDeleted')) } catch (err) { toast.error(err.message) } }, [tripId, tripStore, toast, selectedPlaceId])