Skip to content

Commit eeaa9af

Browse files
authored
fix: remove "Planned Route" label from Map by Vehicle (#1123)
1 parent fc07fc1 commit eeaa9af

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/pages/components/map-related/MapContent.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,13 @@ export function MapContent({ positions, plannedRouteStops, showNavigationButtons
7575
imgSrc={actualRouteStopMarkerPath}
7676
title={t('actualRoute')}
7777
/>
78-
<MapIndex
79-
lineColor={plannedRouteLineColor}
80-
imgSrc={plannedRouteStopMarkerPath}
81-
title={t('plannedRoute')}
82-
/>
78+
{plannedRouteStops && (
79+
<MapIndex
80+
lineColor={plannedRouteLineColor}
81+
imgSrc={plannedRouteStopMarkerPath}
82+
title={t('plannedRoute')}
83+
/>
84+
)}
8385
</div>
8486
{positions.map((pos, i) => {
8587
const icon =

0 commit comments

Comments
 (0)