fix departures()/arrivals() without opt.direction 🐛

This commit is contained in:
Jannis R 2021-10-26 14:13:28 +02:00
parent 84c7582a33
commit dd5e436892
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5

View file

@ -15,7 +15,7 @@ const formatStationBoardReq = (ctx, station, type) => {
date: profile.formatDate(profile, opt.when),
time: profile.formatTime(profile, opt.when),
stbLoc: station,
dirLoc: opt.direction ? profile.formatStation(opt.direction) : null,
dirLoc: opt.direction ? profile.formatStation(opt.direction) : undefined,
jnyFltrL,
dur: opt.duration
}