From 13c2fc43fc91d5109d97651b5cbecafa7a83c4ed Mon Sep 17 00:00:00 2001 From: Sven Gross <12559172+sognodelx@users.noreply.github.com> Date: Thu, 7 Nov 2024 20:40:10 +0100 Subject: [PATCH] fix(a380x/mfd): Fixed DIRECT TO selection of active waypoint does nothing (#9438) * A380X/MFD Fixed null check on DIRECT TO dropdown for active waypoint * A380X/MFD Make null check explicit in DIRECT TO dropdown Co-authored-by: floridude <63071941+flogross89@users.noreply.github.com> --------- Co-authored-by: floridude <63071941+flogross89@users.noreply.github.com> (cherry picked from commit e7df29af25d87c17fd73f5b9f5227ae8f3e2e4a2) --- .github/CHANGELOG.md | 1 + .../instruments/src/MFD/pages/FMS/F-PLN/MfdFmsFplnDirectTo.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index 16278feb1d8..568baf4447d 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -20,6 +20,7 @@ 1. [A380X/FMS] Fixed layouting issue on FMS/ACTIVE/PERF/T.O page for some users - @flogross89 (floridude) 1. [A380X/TELEX] Added popup for telex consent @saschl (saschl) @Maximilian-Reuter (\_chaoz) 1. [A32NX/CAMERA] Improved default camera position for Virtual Reality (VR) - @aguther (Andreas Guther) +1. [A380X/MFD] Fixed DIRECT TO selection of active waypoint does nothing - @sognodelx (Sven Gross) ## 0.12.0 diff --git a/fbw-a380x/src/systems/instruments/src/MFD/pages/FMS/F-PLN/MfdFmsFplnDirectTo.tsx b/fbw-a380x/src/systems/instruments/src/MFD/pages/FMS/F-PLN/MfdFmsFplnDirectTo.tsx index 822d0d6ab51..7e89e37da9b 100644 --- a/fbw-a380x/src/systems/instruments/src/MFD/pages/FMS/F-PLN/MfdFmsFplnDirectTo.tsx +++ b/fbw-a380x/src/systems/instruments/src/MFD/pages/FMS/F-PLN/MfdFmsFplnDirectTo.tsx @@ -164,7 +164,7 @@ export class MfdFmsFplnDirectTo extends FmsPage { containerStyle="width: 175px;" alignLabels="flex-start" onModified={(i, text) => { - if (i) { + if (i !== null) { this.onDropdownModified(i, text); } }}