carrismetropolitana / website

Carris Metropolitana Website
https://beta.carrismetropolitana.pt
3 stars 2 forks source link

client side crash #5

Closed ricardojorgerm closed 11 months ago

ricardojorgerm commented 11 months ago

https://github.com/carrismetropolitana/website/blob/824c40ff9bf280831a9b4a5894751b8daf4aa057/frontend/components/StopsExplorerTimetableRow/StopsExplorerTimetableRow.js#L67

This line crashes (undefined) if path is an empty list, but the trip has its own path, as may happen in malformed api responses/gtfs

Crashing on a single line will stop the entire UI or any other service on that stop from being displayed.

ricardojorgerm commented 11 months ago

Test crash page: https://beta.carrismetropolitana.pt/stops/070283