From 8e2e715d48cc5d9081df60b02f66e799b27b1d40 Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Fri, 15 Nov 2024 10:45:53 +0900 Subject: [PATCH] =?UTF-8?q?=EC=84=A4=EC=A0=95=EB=90=98=EC=A7=80=20?= =?UTF-8?q?=EC=95=8A=EC=9D=80=20=EC=99=B8=EB=B2=BD=EC=84=A0=EC=9D=B4=20?= =?UTF-8?q?=EC=9E=88=EC=9D=84=20=EA=B2=BD=EC=9A=B0=20=ED=99=95=EC=A0=95=20?= =?UTF-8?q?=EB=AA=BB=ED=95=98=EB=8F=84=EB=A1=9D=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/usePropertiesSetting.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/hooks/roofcover/usePropertiesSetting.js b/src/hooks/roofcover/usePropertiesSetting.js index 3a1535a3..73a72e5a 100644 --- a/src/hooks/roofcover/usePropertiesSetting.js +++ b/src/hooks/roofcover/usePropertiesSetting.js @@ -125,6 +125,12 @@ export function usePropertiesSetting(id) { } const lines = canvas.getObjects().filter((obj) => obj.name === 'outerLine') + const notSetAttributes = lines.filter((line) => !line.attributes?.type) + if (notSetAttributes.length > 0) { + alert('설정되지 않은 외벽선이 있습니다.') + return + } + lines.forEach((line) => { line.set({ attributes: line.attributes ? line.attributes : { offset: 0, type: LINE_TYPE.WALLLINE.WALL },