Fix marking of non-marked waypoints.

This commit is contained in:
Dan Albert 2022-03-07 18:10:04 -08:00
parent cf7c7d853f
commit a6a44ef433

View File

@ -48,14 +48,16 @@ const WaypointMarkers = (props: FlightPlanProps) => {
var markers: ReactElement[] = []; var markers: ReactElement[] = [];
props.flight.waypoints?.forEach((p, idx) => { props.flight.waypoints?.forEach((p, idx) => {
markers.push( if (p.should_mark) {
<WaypointMarker markers.push(
key={idx} <WaypointMarker
number={idx} key={idx}
waypoint={p} number={idx}
flight={props.flight} waypoint={p}
/> flight={props.flight}
); />
);
}
}); });
return <>{markers}</>; return <>{markers}</>;