Rebase Staging branch with latest release branch #138
@@ -397,7 +397,7 @@ const AircraftMarker = ({ aircraft }: { aircraft: ConnectedAircraft & { Station:
|
|||||||
|
|
||||||
export const AircraftLayer = () => {
|
export const AircraftLayer = () => {
|
||||||
const { data: aircrafts } = useQuery({
|
const { data: aircrafts } = useQuery({
|
||||||
queryKey: ["aircrafts"],
|
queryKey: ["aircrafts-map"],
|
||||||
queryFn: () => getConnectedAircraftsAPI(),
|
queryFn: () => getConnectedAircraftsAPI(),
|
||||||
refetchInterval: 10_000,
|
refetchInterval: 10_000,
|
||||||
});
|
});
|
||||||
@@ -434,8 +434,10 @@ export const AircraftLayer = () => {
|
|||||||
}
|
}
|
||||||
}, [pilotConnectionStatus, followOwnAircraft, ownAircraft, setMap, map]);
|
}, [pilotConnectionStatus, followOwnAircraft, ownAircraft, setMap, map]);
|
||||||
|
|
||||||
console.debug("Hubschrauber auf Karte:", filteredAircrafts.length, filteredAircrafts);
|
console.debug("Hubschrauber auf Karte:", {
|
||||||
console.debug("Daten vom Server:", aircrafts?.length, aircrafts);
|
total: aircrafts?.length,
|
||||||
|
displayed: filteredAircrafts.length,
|
||||||
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Reference in New Issue
Block a user