Fix drawing of non-path waypoints.

This commit is contained in:
Dan Albert 2022-03-02 23:53:16 -08:00
parent d53fc46ffc
commit f9f18dd38b

View File

@ -27,7 +27,9 @@ function FlightPlanPath(props: FlightPlanProps) {
if (waypoints == null) { if (waypoints == null) {
return <></>; return <></>;
} }
const points = waypoints.map((waypoint) => waypoint.position); const points = waypoints
.filter((waypoint) => waypoint.include_in_path)
.map((waypoint) => waypoint.position);
return ( return (
<Polyline <Polyline
positions={points} positions={points}