Skip to content

Commit d76436e

Browse files
committed
fixup! front: display only trains around the stdcm train on the GET in debug mode
1 parent 16d6959 commit d76436e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

front/src/applications/stdcm/hooks/useProjectedTrainsForStdcm.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,9 @@ import formatStdcmTrainIntoSpaceTimeData from '../utils/formatStdcmIntoSpaceTime
1818
* arrive 1 hour max after the arrival of the stdcm
1919
*/
2020
const keepTrainsRunningDuringStdcm = (
21-
stdcmResult: StdcmSuccessResponse | undefined,
21+
stdcmResult: StdcmSuccessResponse,
2222
trainSchedules: Map<number, TrainScheduleWithDetails>
2323
) => {
24-
if (!stdcmResult) {
25-
return new Set(trainSchedules.keys());
26-
}
27-
2824
const relevantTrainScheduleIds = new Set<number>();
2925

3026
const stdcmDepartureTime = new Date(stdcmResult.departure_time);

0 commit comments

Comments
 (0)