ctucx.git: oeffisearch

[nimlang] fast and simple tripplanner

commit b065c3695b54f261f5ace3f8d69fb53af4767bb3
parent 838e4ec3a9aab7568d2828cb7c9fbc801a0df216
Author: Milan Pässler <me@pbb.lc>
Date: Fri, 7 Feb 2020 17:29:33 +0100

Revert "client/journeysView: productName is now optional"

This reverts commit 150e7300cee37599886e6137d9753698954d5a1b.
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/client/js/journeysView.js b/client/js/journeysView.js
@@ -61,10 +61,7 @@ const journeyOverviewTemplate = (data, key) => {
 		if (leg.isWalking || leg.isTransfer) continue;
 
 		changes = changes+1;
-		if (leg.line.productName)
-			products.push(leg.line.productName);
-		else
-			products.push(leg.mode);
+		products.push(leg.line.productName);
 	}
 
 	products = [...new Set(products)];