fix frontend build
All checks were successful
Build and deploy / Build and Push Docker Images (push) Successful in 2m28s
All checks were successful
Build and deploy / Build and Push Docker Images (push) Successful in 2m28s
This commit is contained in:
@@ -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];
|
||||
})
|
||||
);
|
||||
|
||||
@@ -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];
|
||||
})
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user