Revert "client/journeysView: productName is now optional"
This reverts commit 150e7300ce
.
This commit is contained in:
parent
838e4ec3a9
commit
b065c3695b
|
@ -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)];
|
||||
|
|
Loading…
Reference in a new issue