Fix route not updating after deleting a place

This commit is contained in:
Maurice
2026-03-24 21:50:25 +01:00
parent 763c878dab
commit e660cca284

View File

@@ -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])