diff --git a/src/components/laanc/map/LaancAreaMap.js b/src/components/laanc/map/LaancAreaMap.js index 47dcdeb4..40596d71 100644 --- a/src/components/laanc/map/LaancAreaMap.js +++ b/src/components/laanc/map/LaancAreaMap.js @@ -399,16 +399,18 @@ export default function LaancAreaMap({ className='coords-box' key={i} onClick={() => { - if (!isDrag) { - const allObj = drawObj - .getAll() - .features.filter( - o => o.properties.id !== 'BUFFER' && o.properties.id - ); - - drawObj.changeMode('direct_select', { - featureId: allObj[i].id - }); + if (mapControl.drawType === 'DONE') { + if (!isDrag) { + const allObj = drawObj + .getAll() + .features.filter( + o => o.properties.id !== 'BUFFER' && o.properties.id + ); + + drawObj.changeMode('direct_select', { + featureId: allObj[i].id + }); + } } }} >