From 14ec7e60301370324267a74f2c983b3864d15216 Mon Sep 17 00:00:00 2001 From: changkyu choi Date: Fri, 7 Feb 2025 15:55:00 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B0=B0=EC=B9=98=EB=A9=B4=EC=B4=88=EA=B8=B0?= =?UTF-8?q?=EC=84=A4=EC=A0=95=20=EB=8D=B0=EC=9D=B4=ED=84=B0=20=EC=A1=B4?= =?UTF-8?q?=EC=9E=AC=20=EC=8B=9C=EC=97=90=EB=8A=94=20=ED=99=94=EB=A9=B4=20?= =?UTF-8?q?=EC=B4=88=EA=B8=B0=20=EC=A7=84=EC=9E=85=20=EC=8B=9C=20open=20?= =?UTF-8?q?=EC=A0=9C=EC=96=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/floor-plan/FloorPlan.jsx | 4 ++-- src/hooks/option/useCanvasSetting.js | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/floor-plan/FloorPlan.jsx b/src/components/floor-plan/FloorPlan.jsx index eb9f3047..6c29dd57 100644 --- a/src/components/floor-plan/FloorPlan.jsx +++ b/src/components/floor-plan/FloorPlan.jsx @@ -32,8 +32,8 @@ export default function FloorPlan({ children }) { useEffect(() => { if (!correntObjectNo) return // correntObjectNo가 없으면 실행하지 않음 - if(menuNumber === null) { - setMenuNumber(1) + if (menuNumber === null) { + //setMenuNumber(1) } fetchSettings() fetchBasicSettings() diff --git a/src/hooks/option/useCanvasSetting.js b/src/hooks/option/useCanvasSetting.js index e4b105ad..ac96e202 100644 --- a/src/hooks/option/useCanvasSetting.js +++ b/src/hooks/option/useCanvasSetting.js @@ -355,6 +355,8 @@ export function useCanvasSetting() { roofAngle: 21.8, }, ] + + setMenuNumber(1) } // 데이터 설정 @@ -373,6 +375,7 @@ export function useCanvasSetting() { layout: roofsArray[i].roofLayout, roofSizeSet: roofsRow[i].roofSizeSet, roofAngleSet: roofsRow[i].roofAngleSet, + roofDbData: roofsRow[i].roofDbData, pitch: roofsArray[i].roofPitch, angle: roofsArray[i].roofAngle, })