From f9f18dd38b585d8506e00efde87208194406c1d0 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Wed, 2 Mar 2022 23:53:16 -0800 Subject: [PATCH] Fix drawing of non-path waypoints. --- client/src/components/flightplan/FlightPlan.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/components/flightplan/FlightPlan.tsx b/client/src/components/flightplan/FlightPlan.tsx index 6fce8100..7fb5cf6c 100644 --- a/client/src/components/flightplan/FlightPlan.tsx +++ b/client/src/components/flightplan/FlightPlan.tsx @@ -27,7 +27,9 @@ function FlightPlanPath(props: FlightPlanProps) { if (waypoints == null) { return <>; } - const points = waypoints.map((waypoint) => waypoint.position); + const points = waypoints + .filter((waypoint) => waypoint.include_in_path) + .map((waypoint) => waypoint.position); return (