Skip to content

Commit

Permalink
fixup! front: display only trains around the stdcm train on the GET i…
Browse files Browse the repository at this point in the history
…n debug mode
  • Loading branch information
clarani committed Jan 23, 2025
1 parent 16d6959 commit d76436e
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,9 @@ import formatStdcmTrainIntoSpaceTimeData from '../utils/formatStdcmIntoSpaceTime
* arrive 1 hour max after the arrival of the stdcm
*/
const keepTrainsRunningDuringStdcm = (
stdcmResult: StdcmSuccessResponse | undefined,
stdcmResult: StdcmSuccessResponse,
trainSchedules: Map<number, TrainScheduleWithDetails>
) => {
if (!stdcmResult) {
return new Set(trainSchedules.keys());
}

const relevantTrainScheduleIds = new Set<number>();

const stdcmDepartureTime = new Date(stdcmResult.departure_time);
Expand Down

0 comments on commit d76436e

Please sign in to comment.