Skip to content

Commit

Permalink
front: remove PathItemLocation cast in useSetupItineraryForTrainUpdate()
Browse files Browse the repository at this point in the history
This is unnecessary.

Signed-off-by: Simon Ser <[email protected]>
  • Loading branch information
emersion committed Dec 23, 2024
1 parent ac6be95 commit 7d46735
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,7 @@ const useSetupItineraryForTrainUpdate = (trainIdToEdit: number) => {
const params: PostInfraByInfraIdPathfindingBlocksApiArg = {
infraId,
pathfindingInput: {
path_items: trainSchedule.path.map((item) =>
omit(item, ['id', 'deleted'])
) as PathItemLocation[],
path_items: trainSchedule.path.map((item) => omit(item, ['id', 'deleted'])),
rolling_stock_is_thermal: isThermal(rollingStock.effort_curves.modes),
rolling_stock_loading_gauge: rollingStock.loading_gauge,
rolling_stock_supported_electrifications: getSupportedElectrification(
Expand Down

0 comments on commit 7d46735

Please sign in to comment.