From 0a7d74a21554e96bc64780cbd7abfadb8a045175 Mon Sep 17 00:00:00 2001 From: Adrien Date: Fri, 14 Apr 2023 11:36:54 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Store=20StopArea=20Stops?= =?UTF-8?q?=20in=20BusinessDataStore=20when=20looking=20for=20stops?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/businessData.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/businessData.tsx b/frontend/src/businessData.tsx index 9699fb4..93e4a3b 100644 --- a/frontend/src/businessData.tsx +++ b/frontend/src/businessData.tsx @@ -164,6 +164,9 @@ ${linePassagesDestination.length} here... refresh all them.`); for (const stop of stops) { byIdStops[stop.id] = stop; setStore('stops', stop.id, stop); + for (const innerStop of stop.stops) { + setStore('stops', innerStop.id, innerStop); + } } return byIdStops; }