From 543e8ecafd0203870f58c00bb827aec2bfd64788 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?junh=5Feee=28=EC=9D=B4=EC=A4=80=ED=9D=AC=29?= Date: Mon, 30 Oct 2023 17:28:27 +0900 Subject: [PATCH] =?UTF-8?q?laanc=20=EB=B9=84=ED=96=89=EA=B5=AC=EC=97=AD=20?= =?UTF-8?q?=EC=A0=80=EC=9E=A5=EB=B2=84=ED=8A=BC=20disabled=20=EC=97=90?= =?UTF-8?q?=EB=9F=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/laanc/map/LaancDrawControl.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/laanc/map/LaancDrawControl.js b/src/components/laanc/map/LaancDrawControl.js index 3eb7e29..b6e3010 100644 --- a/src/components/laanc/map/LaancDrawControl.js +++ b/src/components/laanc/map/LaancDrawControl.js @@ -348,7 +348,15 @@ export const LaancDrawControl = props => { // props.handlerAddChange('isAddable', false); props.handlerAddChange('overAdd', false); handlerRemoveGroupMarker(id); - props.handlerSaveCheck(false); + + const remainObj = drawObj + .getAll() + .features.filter(o => o.properties.id !== 'BUFFER' && o.id !== id); + if (remainObj.length === 0) { + props.handlerSaveCheck(false); + } else { + props.handlerSaveCheck(true); + } drawObj.delete(id);