mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Fix marking of non-marked waypoints.
This commit is contained in:
parent
cf7c7d853f
commit
a6a44ef433
@ -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}</>;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user