diff --git a/client/src/components/flightplan/FlightPlan.tsx b/client/src/components/flightplan/FlightPlan.tsx index ff5e36d3..c12f7477 100644 --- a/client/src/components/flightplan/FlightPlan.tsx +++ b/client/src/components/flightplan/FlightPlan.tsx @@ -46,7 +46,9 @@ function FlightPlanPath(props: FlightPlanProps) { // behind everything than was added before them. Anything added after always // goes on top. useEffect(() => { - polylineRef.current?.bringToBack(); + if (!props.selected) { + polylineRef.current?.bringToBack(); + } }); if (waypoints == null) {