- {submited && error !== null && (
+ {/* {submited && error !== null && (
+ )} */}
+ {submited && formError !== null && (
+
)}
diff --git a/front/src/applications/editor/tools/selection/tool.tsx b/front/src/applications/editor/tools/selection/tool.tsx
index 3ba3d3f6424..3d564fff52a 100644
--- a/front/src/applications/editor/tools/selection/tool.tsx
+++ b/front/src/applications/editor/tools/selection/tool.tsx
@@ -1,9 +1,9 @@
import React from 'react';
+import { FiEdit } from 'react-icons/fi';
import { GoTrash } from 'react-icons/go';
-import { BiLoader, BiSelection } from 'react-icons/bi';
import { BsCursor } from 'react-icons/bs';
import { FaDrawPolygon } from 'react-icons/fa';
-import { FiEdit } from 'react-icons/fi';
+import { BiLoader, BiSelection } from 'react-icons/bi';
import { PointLike } from 'maplibre-gl';
import { isEqual, max, min } from 'lodash';
diff --git a/front/src/applications/editor/tools/trackEdition/components.tsx b/front/src/applications/editor/tools/trackEdition/components.tsx
index 1971f8781f8..9084e9b434d 100644
--- a/front/src/applications/editor/tools/trackEdition/components.tsx
+++ b/front/src/applications/editor/tools/trackEdition/components.tsx
@@ -357,7 +357,7 @@ export const TrackEditionLeftPanel: FC = () => {
const { t } = useTranslation();
const infraID = useSelector(getInfraID);
const isLoading = useSelector(getIsLoading);
- const { state, setState } = useContext(
+ const { state, setState, formError, setFormError } = useContext(
EditorContext
) as ExtendedEditorContextType