mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
parseJourneyLeg: null as fallback direction 🐛
This commit is contained in:
parent
2623fc44c6
commit
c435e25390
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ const createParseJourneyLeg = (profile, stations, lines, remarks, polylines) =>
|
|||
// todo: pull `public` value from `profile.products`
|
||||
res.id = pt.jny.jid
|
||||
res.line = lines[parseInt(pt.jny.prodX)] || null
|
||||
res.direction = profile.parseStationName(pt.jny.dirTxt)
|
||||
res.direction = profile.parseStationName(pt.jny.dirTxt) || null
|
||||
|
||||
if (pt.dep.dPlatfS) res.departurePlatform = pt.dep.dPlatfS
|
||||
if (pt.arr.aPlatfS) res.arrivalPlatform = pt.arr.aPlatfS
|
||||
|
|
Loading…
Add table
Reference in a new issue