Skip to content

Commit 57c2c3a

Browse files
committed
fixup! front: update stdcm arrival dates when searchDatetimeWindow changes
1 parent 96b9781 commit 57c2c3a

File tree

1 file changed

+1
-1
lines changed
  • front/src/reducers/osrdconf/stdcmConf

1 file changed

+1
-1
lines changed

front/src/reducers/osrdconf/stdcmConf/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export const stdcmConfSlice = createSlice({
171171
!destination.arrival ||
172172
!isArrivalDateInSearchTimeWindow(destination.arrival, searchDatetimeWindow)
173173
) {
174-
newDestination = { ...destination, arrival: searchDatetimeWindow.end };
174+
newDestination = { ...destination, arrival: searchDatetimeWindow.begin };
175175
}
176176

177177
state.stdcmPathSteps = [newOrigin, ...state.stdcmPathSteps.slice(1, -1), newDestination];

0 commit comments

Comments
 (0)