Skip to content

Commit

Permalink
front: fix signal edition
Browse files Browse the repository at this point in the history
An unexpected field `angle_geo`
  • Loading branch information
flomonster committed Jul 19, 2023
1 parent 2421cbd commit 8a7ba0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
12 changes: 2 additions & 10 deletions front/src/applications/editor/tools/pointEdition/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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,
})}
/>
);
Expand Down
1 change: 0 additions & 1 deletion front/src/types/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ export interface SignalEntity
is_lightable?: boolean;
is_operational?: boolean;
installation_type?: string;
angle_geo?: number;
};
};
}
Expand Down

0 comments on commit 8a7ba0c

Please sign in to comment.