feat: Add checkbox for sightbar entity + fix build errors

This commit is contained in:
2025-06-09 18:48:25 +03:00
parent 2ca1f2cba4
commit e2e750877a
25 changed files with 302 additions and 269 deletions

View File

@@ -171,20 +171,14 @@ export const MapDataProvider = observer(
async function saveStationChanges() {
for (const station of stationChanges) {
const response = await authInstance.patch(
`/route/${routeId}/station`,
station
);
await authInstance.patch(`/route/${routeId}/station`, station);
}
}
async function saveSightChanges() {
console.log("sightChanges", sightChanges);
for (const sight of sightChanges) {
const response = await authInstance.patch(
`/route/${routeId}/sight`,
sight
);
await authInstance.patch(`/route/${routeId}/sight`, sight);
}
}