Commit c5f00797 authored by Léonard Treille's avatar Léonard Treille
Browse files

Fix stopId issue

parent 56b10dba
......@@ -103,7 +103,7 @@ export class DetailProchainspassagesComponent implements OnInit, OnDestroy {
// Set the stopId property from the time values.
this.prochPassages.forEach(passage => {
passage.stopId = passage.time.map(p => p.stopId).reduce((acc, p) => p, '');
passage.stopId = passage.time[0]?.stopId;
});
if (this.mode === 'compact-unique' && this.lines) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment