Commit b745e1b 1 parent 5c61c96 commit b745e1b Copy full SHA for b745e1b
File tree 1 file changed +2
-4
lines changed
front/src/modules/simulationResult/components/SpaceTimeChart
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import { STDCM_TRAIN_ID } from 'applications/stdcm/consts';
6
6
import {
7
7
osrdEditoastApi ,
8
8
type PathProperties ,
9
- type PostInfraByInfraIdPathPropertiesApiArg ,
10
9
type TrainScheduleResult ,
11
10
} from 'common/api/osrdEditoastApi' ;
12
11
import { addElementAtIndex } from 'utils/array' ;
@@ -37,14 +36,13 @@ const useGetProjectedTrainOperationalPoints = (
37
36
useEffect ( ( ) => {
38
37
const getOperationalPoints = async ( ) => {
39
38
if ( infraId && trainScheduleUsedForProjection && pathfindingResult ?. status === 'success' ) {
40
- const pathPropertiesParams : PostInfraByInfraIdPathPropertiesApiArg = {
39
+ const { operational_points } = await postPathProperties ( {
41
40
infraId,
42
41
props : [ 'operational_points' ] ,
43
42
pathPropertiesInput : {
44
43
track_section_ranges : pathfindingResult . track_section_ranges ,
45
44
} ,
46
- } ;
47
- const { operational_points } = await postPathProperties ( pathPropertiesParams ) . unwrap ( ) ;
45
+ } ) . unwrap ( ) ;
48
46
49
47
let operationalPointsWithAllWaypoints = operational_points ! ;
50
48
You can’t perform that action at this time.
0 commit comments