Skip to content

Commit 5b07ebf

Browse files
committed
front: omit start_time from TrainScheduleWithDetails
startTime should be used instead, because it's an already-parsed Date object instead of a string. Signed-off-by: Simon Ser <contact@emersion.fr>
1 parent 3e2c4fa commit 5b07ebf

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

front/src/modules/trainschedule/components/Timetable/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type SimulationSummaryResultSuccess = Extract<SimulationSummaryResult, { status:
1414

1515
export type TrainScheduleWithDetails = Omit<
1616
TrainScheduleResult,
17-
'train_name' | 'rolling_stock_name' | 'timetable_id'
17+
'train_name' | 'rolling_stock_name' | 'timetable_id' | 'start_time'
1818
> & {
1919
id: number;
2020
trainName: string;

front/src/reducers/osrdconf/operationalStudiesConf/operationalStudiesConfReducer.spec.ts

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ describe('simulationConfReducer', () => {
3434
id: 1,
3535
trainName: 'train1',
3636
constraint_distribution: 'MARECO',
37-
start_time: '2021-01-01T00:00:00Z',
3837
rollingStock: { id: 1, name: 'rollingStock1' } as LightRollingStockWithLiveries,
3938
path: [
4039
{ id: 'id1', uic: 123 },

0 commit comments

Comments
 (0)