Skip to content

Commit

Permalink
front: omit start_time from TrainScheduleWithDetails
Browse files Browse the repository at this point in the history
startTime should be used instead, because it's an already-parsed
Date object instead of a string.

Signed-off-by: Simon Ser <[email protected]>
  • Loading branch information
emersion committed Dec 20, 2024
1 parent 3e2c4fa commit 5b07ebf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type SimulationSummaryResultSuccess = Extract<SimulationSummaryResult, { status:

export type TrainScheduleWithDetails = Omit<
TrainScheduleResult,
'train_name' | 'rolling_stock_name' | 'timetable_id'
'train_name' | 'rolling_stock_name' | 'timetable_id' | 'start_time'
> & {
id: number;
trainName: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ describe('simulationConfReducer', () => {
id: 1,
trainName: 'train1',
constraint_distribution: 'MARECO',
start_time: '2021-01-01T00:00:00Z',
rollingStock: { id: 1, name: 'rollingStock1' } as LightRollingStockWithLiveries,
path: [
{ id: 'id1', uic: 123 },
Expand Down

0 comments on commit 5b07ebf

Please sign in to comment.