지붕면 할당 전 제거 시 오류 수정
This commit is contained in:
parent
25778a099f
commit
93b645e9e8
@ -273,7 +273,7 @@ export function useRoofAllocationSetting(id) {
|
||||
const roofs = canvas.getObjects().filter((obj) => obj.name === POLYGON_TYPE.ROOF)
|
||||
|
||||
for (let i = 0; i < roofs.length; i++) {
|
||||
if (roofs[i].roofMaterial.index === idx) {
|
||||
if (roofs[i].roofMaterial?.index === idx) {
|
||||
swalFire({ type: 'alert', icon: 'error', text: getMessage('roof.material.can.not.delete') })
|
||||
return
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user