feat: update station names

This commit is contained in:
2026-04-09 20:07:18 +03:00
parent 8d1de769c5
commit fbf8232ce3
9 changed files with 10 additions and 13 deletions

View File

@@ -97,7 +97,6 @@ class RouteStore {
saveRouteStations = async (routeId: number, stationId: number) => {
const { language } = languageStore;
// Получаем актуальные данные станции с сервера
const stationResponse = await languageInstance(language).get(
`/station/${stationId}`
);
@@ -108,7 +107,6 @@ class RouteStore {
(station) => station.id === stationId
);
// Формируем данные для отправки: все поля станции + отредактированные offset
const dataToSend: any = {
station_id: stationId,
offset_x: editedStationData?.offset_x ?? fullStationData.offset_x ?? 0,