Browse Source

laanc 비행구역 저장버튼 disabled 에러 수정

pull/2/head
junh_eee(이준희) 11 months ago
parent
commit
543e8ecafd
  1. 8
      src/components/laanc/map/LaancDrawControl.js

8
src/components/laanc/map/LaancDrawControl.js

@ -348,7 +348,15 @@ export const LaancDrawControl = props => {
// props.handlerAddChange('isAddable', false);
props.handlerAddChange('overAdd', false);
handlerRemoveGroupMarker(id);
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);

Loading…
Cancel
Save