feat: Group map entities + delete useless logs

This commit is contained in:
2025-07-13 20:56:25 +03:00
parent bf117ef048
commit 97f95fc394
9 changed files with 374 additions and 236 deletions

View File

@@ -82,11 +82,6 @@ class RouteStore {
};
setRouteStations = (routeId: number, stationId: number, data: any) => {
console.log(
this.routeStations[routeId],
stationId,
this.routeStations[routeId].find((station) => station.id === stationId)
);
this.routeStations[routeId] = this.routeStations[routeId]?.map((station) =>
station.id === stationId ? { ...station, ...data } : station
);