Commit c4188e1 1 parent d9626c4 commit c4188e1 Copy full SHA for c4188e1
File tree 2 files changed +4
-3
lines changed
applications/operationalStudies/views
reducers/osrdconf/operationalStudiesConf
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,7 @@ const ManageTrainSchedule = ({ trainIdToEdit }: ManageTrainScheduleProps) => {
40
40
const destination = useSelector ( getDestination ) ;
41
41
const pathSteps = useSelector ( getPathSteps ) ;
42
42
const constraintDistribution = useSelector ( getConstraintDistribution ) ;
43
- const rawStartTime = useSelector ( getStartTime ) ;
44
- const startTime = useMemo ( ( ) => new Date ( rawStartTime ) , [ rawStartTime ] ) ;
43
+ const startTime = useSelector ( getStartTime ) ;
45
44
46
45
const [ pathProperties , setPathProperties ] = useState < ManageTrainSchedulePathProperties > ( ) ;
47
46
@@ -142,7 +141,7 @@ const ManageTrainSchedule = ({ trainIdToEdit }: ManageTrainScheduleProps) => {
142
141
content : (
143
142
< TimesStopsInput
144
143
allWaypoints = { pathProperties ?. allWaypoints }
145
- startTime = { startTime }
144
+ startTime = { new Date ( startTime ) }
146
145
pathSteps = { compact ( pathSteps ) }
147
146
/>
148
147
) ,
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ export const operationalStudiesConfSlice = createSlice({
30
30
speedLimitTag,
31
31
labels,
32
32
power_restrictions,
33
+ constraint_distribution,
33
34
} = action . payload ;
34
35
35
36
state . rollingStockID = rollingStock ?. id ;
@@ -43,6 +44,7 @@ export const operationalStudiesConfSlice = createSlice({
43
44
state . labels = labels ;
44
45
state . speedLimitByTag = speedLimitTag || undefined ;
45
46
state . powerRestriction = power_restrictions || [ ] ;
47
+ state . constraintDistribution = constraint_distribution || 'STANDARD' ;
46
48
} ,
47
49
} ,
48
50
} ) ;
You can’t perform that action at this time.
0 commit comments