commit 150e7300cee37599886e6137d9753698954d5a1b
parent 77d5944aa2e7d575a7f244460f27cc53a5fb7c24
Author: Milan Pässler <me@pbb.lc>
Date: Fri, 7 Feb 2020 17:10:58 +0100
parent 77d5944aa2e7d575a7f244460f27cc53a5fb7c24
Author: Milan Pässler <me@pbb.lc>
Date: Fri, 7 Feb 2020 17:10:58 +0100
client/journeysView: productName is now optional
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/client/js/journeysView.js b/client/js/journeysView.js @@ -61,7 +61,10 @@ const journeyOverviewTemplate = (data, key) => { if (leg.isWalking || leg.isTransfer) continue; changes = changes+1; - products.push(leg.line.productName); + if (leg.line.productName) + products.push(leg.line.productName); + else + products.push(leg.mode); } products = [...new Set(products)];