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 (