fix frontend build
All checks were successful
Build and deploy / Build and Push Docker Images (push) Successful in 2m28s

This commit is contained in:
2025-12-14 23:22:32 +05:00
parent e36e5e8fc5
commit 4f0ce8744e
2 changed files with 4 additions and 2 deletions

View File

@@ -61,7 +61,8 @@ function AutoZoom({ mapId, refreshTrigger }: { mapId: string; refreshTrigger: nu
// Create bounds from all device coordinates
const bounds = L.latLngBounds(
devices.map(device => {
const [lng, lat] = device.geometry.coordinates;
const coords = (device.geometry as GeoJSON.Point).coordinates;
const [lng, lat] = coords;
return [lat, lng] as [number, number];
})
);

View File

@@ -79,7 +79,8 @@ function AutoZoom({ mapId, refreshTrigger }: { mapId: string; refreshTrigger: nu
// Create bounds from all device coordinates
const bounds = L.latLngBounds(
devices.map(device => {
const [lng, lat] = device.geometry.coordinates;
const coords = (device.geometry as GeoJSON.Point).coordinates;
const [lng, lat] = coords;
return [lat, lng] as [number, number];
})
);