지붕면 할당 전 제거 시 오류 수정

This commit is contained in:
hyojun.choi 2025-03-26 15:08:37 +09:00
parent 25778a099f
commit 93b645e9e8

View File

@ -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
}