Skip to content

Commit 6023c7a

Browse files
committed
fix map stops to not gray out with unset stop_state
1 parent 23f01c9 commit 6023c7a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ui/src/components/map/stops/hooks/useMapStops.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ export const useMapStops = (displayedRouteIds: ReadonlyArray<string>) => {
112112
const getStopShouldBeGray = useCallback(
113113
(stop: MapStop): boolean =>
114114
(!!selectedRouteId && !usedStopLabels.includes(stop.label)) ||
115-
stop.stop_state !== StopPlaceState.InOperation ||
115+
(stop.stop_state !== null &&
116+
stop.stop_state !== StopPlaceState.InOperation) ||
116117
!isCurrentEntity(observationDate, stop),
117118
[selectedRouteId, observationDate, usedStopLabels],
118119
);

0 commit comments

Comments
 (0)