From 57f3cdb7e014e692f2b47b4e8a8ca6b1b13cbc83 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Mon, 7 May 2018 11:48:08 +0200 Subject: [PATCH] parseLocation: null as fallback station name --- parse/location.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse/location.js b/parse/location.js index 1659ea92..44f34f5c 100644 --- a/parse/location.js +++ b/parse/location.js @@ -19,7 +19,7 @@ const parseLocation = (profile, l, lines) => { const station = { type: 'station', id: l.extId, - name: profile.parseStationName(l.name), + name: l.name ? profile.parseStationName(l.name) : null, location: 'number' === typeof res.latitude ? res : null }