Fix jwt-token

This commit is contained in:
2025-09-10 13:25:39 +02:00
parent 5beff6b512
commit 5f8c2ef5f8

View File

@@ -419,6 +419,10 @@ const MapView = () => {
return detections.map((detection, droneIndex) => { return detections.map((detection, droneIndex) => {
console.log('MapView: Rendering ring for detection:', detection, 'droneIndex:', droneIndex, 'totalDrones:', detections.length, 'detector device:', detectorDevice); console.log('MapView: Rendering ring for detection:', detection, 'droneIndex:', droneIndex, 'totalDrones:', detections.length, 'detector device:', detectorDevice);
// Calculate values first
const totalDrones = detections.length;
const opacity = getDetectionOpacity(detection); const opacity = getDetectionOpacity(detection);
const age = getDetectionAge(detection); const age = getDetectionAge(detection);
console.log('MapView: Detection age:', age, 'opacity:', opacity); console.log('MapView: Detection age:', age, 'opacity:', opacity);
@@ -493,7 +497,6 @@ const MapView = () => {
]; ];
}; };
const totalDrones = detections.length;
const dashPattern = getDashPattern(detection.drone_type, droneIndex, totalDrones); const dashPattern = getDashPattern(detection.drone_type, droneIndex, totalDrones);
const [latOffset, lonOffset] = getPositionOffset(droneIndex, totalDrones); const [latOffset, lonOffset] = getPositionOffset(droneIndex, totalDrones);