From a6a44ef433cef406e16263ed5155a18fec324b42 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Mon, 7 Mar 2022 18:10:04 -0800 Subject: [PATCH] Fix marking of non-marked waypoints. --- .../src/components/flightplan/FlightPlan.tsx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/client/src/components/flightplan/FlightPlan.tsx b/client/src/components/flightplan/FlightPlan.tsx index 2c48ed7a..950bd31b 100644 --- a/client/src/components/flightplan/FlightPlan.tsx +++ b/client/src/components/flightplan/FlightPlan.tsx @@ -48,14 +48,16 @@ const WaypointMarkers = (props: FlightPlanProps) => { var markers: ReactElement[] = []; props.flight.waypoints?.forEach((p, idx) => { - markers.push( - - ); + if (p.should_mark) { + markers.push( + + ); + } }); return <>{markers};