Skip to content

Commit

Permalink
fix ui parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Nov 5, 2024
1 parent e37aace commit fe640bb
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions ui/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -102,19 +103,19 @@
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),
toPlace: toPlaceString(to),
arriveBy: timeType === 'arrival',
timetableView: true,
wheelchair,
ingressModes: modes,
egressModes: modes,
preTransitModes: modes,
postTransitModes: modes,
directModes: modes
}
}
} as PlanData)
: undefined
);
let baseResponse = $state<Promise<PlanResponse>>();
Expand Down

0 comments on commit fe640bb

Please sign in to comment.