fix zwischenhalte option possibly being null for dbweb profile

This commit is contained in:
dabund24 2026-04-25 18:57:01 +02:00
parent a1537924a9
commit 1feaaf0e55

View file

@ -18,7 +18,7 @@ const formatJourneysReq = (ctx, from, to, when, outFrwd, journeysRef) => {
abfahrtsHalt: from.lid,
zwischenhalte: opt.via
? [{id: profile.formatLocation(profile, opt.via, 'opt.via').lid}]
: null,
: undefined,
ankunftsHalt: to.lid,
produktgattungen: filters,
bikeCarriage: opt.bike,