Skip to content

Commit dc2e542

Browse files
committed
front: when saving new route, use the direction of first track
1 parent bd5d68e commit dc2e542

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

front/src/applications/editor/tools/routeEdition/components/EditRoutePath.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ export const EditRoutePathLeftPanel: FC<{ state: EditRoutePathState }> = ({ stat
214214
properties: {
215215
id: '', // will be replaced by entityToCreateOperation
216216
entry_point: omit(entryPoint, 'position'),
217+
entry_point_direction: candidate.data.track_ranges[0].direction,
217218
exit_point: omit(exitPoint, 'position'),
218219
switches_directions: candidate.data.switches_directions,
219220
release_detectors: includeReleaseDetectors

0 commit comments

Comments
 (0)