diff --git a/front/src/applications/editor/tools/rangeEdition/speedSection/SpeedSectionMetadataForm.tsx b/front/src/applications/editor/tools/rangeEdition/speedSection/SpeedSectionMetadataForm.tsx index fe17f6ac957..194db63de7b 100644 --- a/front/src/applications/editor/tools/rangeEdition/speedSection/SpeedSectionMetadataForm.tsx +++ b/front/src/applications/editor/tools/rangeEdition/speedSection/SpeedSectionMetadataForm.tsx @@ -4,7 +4,7 @@ import { SpeedSectionEntity } from 'types'; import { AiOutlinePlusCircle } from 'react-icons/ai'; import { FaTimes } from 'react-icons/fa'; import { MdSpeed } from 'react-icons/md'; -import { cloneDeep, isEmpty, map, mapKeys, omit } from 'lodash'; +import { cloneDeep, isEmpty, mapKeys, omit } from 'lodash'; import EditorContext from '../../../context'; import { ExtendedEditorContextType } from '../../editorContextTypes'; @@ -74,8 +74,8 @@ const SpeedSectionMetadataForm: FC = () => { {t('Editor.tools.speed-edition.additional-speed-limit')} )} - {map(entity.properties.speed_limit_by_tag || {}, (value, key) => ( -
+ {Object.entries(entity.properties.speed_limit_by_tag || {}).map(([key, value], index) => ( +