From c435e253907af5fc244b5847ade5e192b5606423 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Sun, 13 May 2018 22:52:33 +0200 Subject: [PATCH] parseJourneyLeg: null as fallback direction :bug: --- parse/journey-leg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse/journey-leg.js b/parse/journey-leg.js index 65032de2..fd634a9f 100644 --- a/parse/journey-leg.js +++ b/parse/journey-leg.js @@ -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