From 93b645e9e802e276a28c0ae964bc031897a2a2d6 Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Wed, 26 Mar 2025 15:08:37 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A7=80=EB=B6=95=EB=A9=B4=20=ED=95=A0?= =?UTF-8?q?=EB=8B=B9=20=EC=A0=84=20=EC=A0=9C=EA=B1=B0=20=EC=8B=9C=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/roofcover/useRoofAllocationSetting.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/roofcover/useRoofAllocationSetting.js b/src/hooks/roofcover/useRoofAllocationSetting.js index a8caf5ce..6d573ff0 100644 --- a/src/hooks/roofcover/useRoofAllocationSetting.js +++ b/src/hooks/roofcover/useRoofAllocationSetting.js @@ -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 }