diff --git a/front/src/applications/editor/tools/pointEdition/components.tsx b/front/src/applications/editor/tools/pointEdition/components.tsx index dd625f74d77..5c97ecc8b3f 100644 --- a/front/src/applications/editor/tools/pointEdition/components.tsx +++ b/front/src/applications/editor/tools/pointEdition/components.tsx @@ -4,7 +4,7 @@ import { useDispatch, useSelector } from 'react-redux'; import { Popup } from 'react-map-gl'; import { useTranslation } from 'react-i18next'; import { featureCollection } from '@turf/helpers'; -import { merge, isEqual } from 'lodash'; +import { isEqual } from 'lodash'; import along from '@turf/along'; import { BiArrowFromLeft, BiArrowToRight } from 'react-icons/bi'; import { BsBoxArrowInRight } from 'react-icons/bs'; @@ -397,15 +397,7 @@ export const SignalEditionLayers: FC<{ map: mapboxgl.Map }> = ({ map }) => ( mergeEntityWithNearestPoint={(entity, nearestPoint) => ({ ...entity, geometry: nearestPoint.feature.geometry, - properties: { - ...merge(entity.properties, { - extensions: { - sncf: { - angle_geo: nearestPoint.angle, - }, - }, - }), - }, + properties: entity.properties, })} /> ); diff --git a/front/src/types/editor.ts b/front/src/types/editor.ts index 6ca69a4bb60..0028deea669 100644 --- a/front/src/types/editor.ts +++ b/front/src/types/editor.ts @@ -103,7 +103,6 @@ export interface SignalEntity is_lightable?: boolean; is_operational?: boolean; installation_type?: string; - angle_geo?: number; }; }; }