Skip to content
Snippets Groups Projects
Unverified Commit 4e995b71 authored by BITARD Michaël's avatar BITARD Michaël Committed by GitHub
Browse files

fix(ui): corrige le téléversement d'un périmètre (#480)

parent 4b45b510
No related branches found
No related tags found
No related merge requests found
......@@ -259,7 +259,7 @@ export const PointsEdit = caminoDefineComponent<Props>(['showTitle', 'etape', 'e
{contourPoints.map((point, pointIndex) => (
<div key={pointIndex + 1} class="geo-point">
<div class="flex full-x">
<h4 class="mt-s">{point.lot ? 'Lot de points' : `Point ${point.nom}`}</h4>
<h4 class="mt-s">{point.lot ? 'Lot de points' : `Point ${point.nom ?? ''}`}</h4>
<div class="flex-right">
{!(props.etape.groupes.length === groupeIndex + 1 && groupeContours.length === contourIndex + 1 && contourPoints.length === pointIndex + 1) ? (
<button class="btn-border py-s px-m rnd-l-xs" onClick={() => pointMoveDown(groupeIndex, contourIndex, pointIndex)}>
......
......@@ -227,9 +227,9 @@ const actions = {
state.element.geoSystemeIds = geoSystemeIds
state.element.geoSystemeOpposableId = geoSystemeOpposableId
// pour modifier la surface, on doit désactiver l’héritage
etape.heritageProps.surface.actif = false
etape.surface = surface
commit('set', etape)
state.element.heritageProps.surface.actif = false
state.element.surface = surface
commit('set', state.element)
commit('metasSet', {
sdomZonesDocumentTypeIds: documentTypeIds,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment