Fix jwt-token

This commit is contained in:
2025-08-18 10:36:21 +02:00
parent 24be56ad0c
commit 016df4c9d6

View File

@@ -422,8 +422,11 @@ const MapView = () => {
dashArray: dashPattern dashArray: dashPattern
}} }}
eventHandlers={{ eventHandlers={{
click: () => { click: (e) => {
e.originalEvent.preventDefault();
e.originalEvent.stopPropagation();
console.log('MapView: Ring clicked for drone:', detection); console.log('MapView: Ring clicked for drone:', detection);
setSelectedDetection(detection);
} }
}} }}
> >
@@ -719,13 +722,19 @@ const DroneDetectionPopup = ({ detection, age, droneTypes, droneDetectionHistory
<div className="flex justify-between"> <div className="flex justify-between">
<span className="text-gray-600">First detected:</span> <span className="text-gray-600">First detected:</span>
<span className="font-mono text-gray-900"> <span className="font-mono text-gray-900">
{format(new Date(firstDetection.device_timestamp), 'MMM dd, HH:mm:ss')} {firstDetection.device_timestamp ?
format(new Date(firstDetection.device_timestamp), 'MMM dd, HH:mm:ss') :
'Unknown'
}
</span> </span>
</div> </div>
<div className="flex justify-between"> <div className="flex justify-between">
<span className="text-gray-600">Latest detection:</span> <span className="text-gray-600">Latest detection:</span>
<span className="font-mono text-gray-900"> <span className="font-mono text-gray-900">
{format(new Date(detection.device_timestamp), 'MMM dd, HH:mm:ss')} {detection.device_timestamp ?
format(new Date(detection.device_timestamp), 'MMM dd, HH:mm:ss') :
'Unknown'
}
</span> </span>
</div> </div>
{droneHistory.length > 1 && ( {droneHistory.length > 1 && (