🐛 Error raised by frontend Map component if no stop found

This commit is contained in:
2023-09-09 23:18:03 +02:00
parent f7f0fdb980
commit 4056b3a739

View File

@@ -116,8 +116,10 @@ export const Map: ParentComponent<{}> = () => {
const foundStopIds = new Set();
for (const foundStop of stops) {
foundStopIds.add(foundStop.id);
if (foundStop.stops !== undefined) {
foundStop.stops.forEach(s => foundStopIds.add(s.id));
}
}
for (const [stopIdStr, feature] of Object.entries(displayedFeatures)) {
const stopId = parseInt(stopIdStr);