feat: update station names
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user