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);