From dd5e43689205c16de5d49a29b9b72e14b103be29 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Tue, 26 Oct 2021 14:13:28 +0200 Subject: [PATCH] =?UTF-8?q?fix=20departures()/arrivals()=20without=20opt.d?= =?UTF-8?q?irection=20=F0=9F=90=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- format/station-board-req.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format/station-board-req.js b/format/station-board-req.js index f29ab01c..35fdd967 100644 --- a/format/station-board-req.js +++ b/format/station-board-req.js @@ -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 }