From 5d5cede5ded96bab471e2fc411b9ff171043805c 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: Thu, 19 Oct 2023 16:48:06 +0900 Subject: [PATCH] =?UTF-8?q?laanc=20=EB=B9=84=ED=96=89=EA=B5=AC=EC=97=AD=20?= =?UTF-8?q?=ED=91=9C=EC=B6=9C=EA=B0=9C=EC=88=98=20=EC=97=90=EB=9F=AC=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/map/mapbox/draw/LaancDrawControl.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/map/mapbox/draw/LaancDrawControl.js b/src/components/map/mapbox/draw/LaancDrawControl.js index 7517a32..056f707 100644 --- a/src/components/map/mapbox/draw/LaancDrawControl.js +++ b/src/components/map/mapbox/draw/LaancDrawControl.js @@ -326,7 +326,10 @@ export const LaancDrawControl = props => { const obj = drawObj .getAll() - .features.filter(obj => obj.properties.id !== 'BUFFER'); + .features.filter( + obj => + obj.properties.id !== 'BUFFER' && obj.geometry.coordinates.length > 0 + ); props.setViewCoordObj(obj); if (obj.length > 1) { props.handlerAddChange('overAdd', true);