Browse Source

Allow for unknown stops in side pane

master
Mattéo Delabre 7 months ago
parent
commit
ca8d6f894f
Signed by: matteo <spam@delab.re> GPG Key ID: AE3FBD02DC583ABB
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/front/index.js

+ 3
- 1
src/front/index.js View File

@@ -29,7 +29,9 @@ setInterval(() => {

const timeToHTML = time => Math.ceil((time - Date.now()) / 1000);

const stopToHTML = stopId => network.stops[stopId].properties.name;
const stopToHTML = stopId => stopId in network.stops ?
network.stops[stopId].properties.name :
'<em>Arrêt inconnu</em>';

const passingsToHTML = passings => passings.map(([stopId, time]) => `
<tr>


Loading…
Cancel
Save