client/journeysView: productName is now optional
This commit is contained in:
parent
77d5944aa2
commit
150e7300ce
|
@ -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)];
|
||||
|
|
Loading…
Reference in a new issue