Skip to content

Commit 90dc639

Browse files
Alice K.Synar
Alice K.
authored andcommitted
front: no longer display destination on single step path
Signed-off-by: Alice K. <alice.khoudli@gmail.com>
1 parent daa5eae commit 90dc639

File tree

1 file changed

+1
-1
lines changed
  • front/src/modules/pathfinding/components/Itinerary/DisplayItinerary

1 file changed

+1
-1
lines changed

front/src/modules/pathfinding/components/Itinerary/DisplayItinerary/Destination.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const Destination = ({ zoomToFeaturePoint }: DestinationProps) => {
2020
const pathSteps = useSelector(getPathSteps);
2121

2222
const { t } = useTranslation(['operationalStudies/manageTrainSchedule']);
23-
if (!destination)
23+
if (!destination || pathSteps.length === 1)
2424
return (
2525
<>
2626
<span className="text-warning mr-2">

0 commit comments

Comments
 (0)