diff --git a/ui/src/routes/+page.svelte b/ui/src/routes/+page.svelte index ea5c8df9e..24f9cf87c 100644 --- a/ui/src/routes/+page.svelte +++ b/ui/src/routes/+page.svelte @@ -13,7 +13,8 @@ plan, type PlanResponse, trip, - type Mode + type Mode, + type PlanData } from '$lib/openapi'; import ItineraryList from './ItineraryList.svelte'; import ConnectionDetail from './ConnectionDetail.svelte'; @@ -102,7 +103,7 @@ let modes = $derived(['WALK', ...(bikeRental ? ['BIKE_RENTAL'] : [])] as Mode[]); let baseQuery = $derived( from.value.match && to.value.match - ? { + ? ({ query: { time: time.toISOString(), fromPlace: toPlaceString(from), @@ -110,11 +111,11 @@ arriveBy: timeType === 'arrival', timetableView: true, wheelchair, - ingressModes: modes, - egressModes: modes, + preTransitModes: modes, + postTransitModes: modes, directModes: modes } - } + } as PlanData) : undefined ); let baseResponse = $state>();