Fix EDDM ILS26 OTT
This commit is contained in:
@@ -11,7 +11,7 @@ interface ProcedureSelectProps {
|
||||
setSelectedAirport: Dispatch<SetStateAction<Airport | undefined>>;
|
||||
setSelectedRunway: Dispatch<SetStateAction<Runway | undefined>>;
|
||||
setSelectedTerminal: Dispatch<SetStateAction<Terminal | undefined>>;
|
||||
handleSelection: (transitions: string[]) => void;
|
||||
handleSelection: (transitions: string[], terminal: Terminal) => void;
|
||||
}
|
||||
|
||||
export const ProcedureSelect: FC<ProcedureSelectProps> = ({
|
||||
@@ -125,7 +125,7 @@ export const ProcedureSelect: FC<ProcedureSelectProps> = ({
|
||||
parser.loadTerminal(terminal.ID).then(() => {
|
||||
setSelectedTerminal(terminal);
|
||||
const transitions = new Set(parser.procedures.map((proc) => proc.Transition));
|
||||
handleSelection(Array.from(transitions));
|
||||
handleSelection(Array.from(transitions), terminal);
|
||||
setInFlight(undefined);
|
||||
});
|
||||
}}
|
||||
@@ -148,7 +148,7 @@ export const ProcedureSelect: FC<ProcedureSelectProps> = ({
|
||||
parser.loadTerminal(terminal.ID).then(() => {
|
||||
setSelectedTerminal(terminal);
|
||||
const transitions = new Set(parser.procedures.map((proc) => proc.Transition));
|
||||
handleSelection(Array.from(transitions));
|
||||
handleSelection(Array.from(transitions), terminal);
|
||||
});
|
||||
}}
|
||||
disabled={!!inFlight}
|
||||
@@ -170,7 +170,7 @@ export const ProcedureSelect: FC<ProcedureSelectProps> = ({
|
||||
parser.loadTerminal(terminal.ID).then(() => {
|
||||
setSelectedTerminal(terminal);
|
||||
const transitions = new Set(parser.procedures.map((proc) => proc.Transition));
|
||||
handleSelection(Array.from(transitions));
|
||||
handleSelection(Array.from(transitions), terminal);
|
||||
});
|
||||
}}
|
||||
disabled={!!inFlight}
|
||||
|
||||
Reference in New Issue
Block a user