Fixed StationSelectBug, Fixed HPGNotificationGuf, see #45

This commit is contained in:
PxlLoewe
2025-07-06 12:53:04 -07:00
parent 690f4876d6
commit 9b954e4053
8 changed files with 60 additions and 37 deletions

View File

@@ -16,15 +16,15 @@ const Map = dynamic(() => import("_components/map/Map"), {
ssr: false,
});
const DispatchPage = () => {
const PilotPage = () => {
const { connectedAircraft, status } = usePilotConnectionStore((state) => state);
const { data: ownAircraftArray = [] } = useQuery({
queryKey: ["aircrafts", connectedAircraft?.id],
queryKey: ["own-aircraft", connectedAircraft?.id],
queryFn: () =>
getAircraftsAPI({
id: connectedAircraft?.id,
}),
refetchInterval: 1000,
refetchInterval: 10000,
});
const ownAircraft = ownAircraftArray[0];
const simulatorConnected = ownAircraft ? checkSimulatorConnected(ownAircraft) : false;
@@ -73,6 +73,6 @@ const DispatchPage = () => {
);
};
DispatchPage.displayName = "DispatchPage";
PilotPage.displayName = "DispatchPage";
export default DispatchPage;
export default PilotPage;