Skip to content

Commit

Permalink
front: remove stdcm related props from PathStep type
Browse files Browse the repository at this point in the history
Signed-off-by: Clara Ni <[email protected]>
  • Loading branch information
clarani committed Jan 3, 2025
1 parent 65798a5 commit 2963fe0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions front/src/modules/pathfinding/hooks/usePathfinding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,11 @@ const usePathfinding = (
const theoreticalMargin = i === 0 ? step.theoreticalMargin || '0%' : step.theoreticalMargin;

const stopFor = i === pathStepsInput.length - 1 && !step.stopFor ? '0' : step.stopFor;
const stopType = i === pathStepsInput.length - 1 && !step.stopFor ? undefined : step.stopType;

return {
...step,
positionOnPath: pathResult.path_item_positions[i],
stopFor,
stopType,
theoreticalMargin,
...(correspondingOp && {
name: correspondingOp.name,
Expand Down
4 changes: 0 additions & 4 deletions front/src/reducers/osrdconf/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,8 @@ export type PathStep = PathItemLocation & {
If true, the train schedule is consider as invalid and must be edited */
deleted?: boolean;
arrival?: IsoDurationString | null;
arrivalType?: ArrivalTimeTypes;
arrivalToleranceBefore?: number;
arrivalToleranceAfter?: number;
locked?: boolean;
stopFor?: string | null;
stopType?: StdcmStopTypes;
theoreticalMargin?: string;
receptionSignal?: ReceptionSignal;
kp?: string;
Expand Down

0 comments on commit 2963fe0

Please sign in to comment.