From f0cbceb64eb5b89ae41488459d1c737bcf945f77 Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Thu, 20 Feb 2025 16:58:57 +0900 Subject: [PATCH] =?UTF-8?q?parent=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/module/useTrestle.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/hooks/module/useTrestle.js b/src/hooks/module/useTrestle.js index 17f58814..d7a43c67 100644 --- a/src/hooks/module/useTrestle.js +++ b/src/hooks/module/useTrestle.js @@ -710,7 +710,7 @@ export const useTrestle = () => { slope, classType: currentAngleType === 'slope' ? '0' : '1', angle: getDegreeByChon(slope), - azimuth: getAzimuth(surface), + azimuth: getAzimuth(parent), moduleList, } }) @@ -726,8 +726,9 @@ export const useTrestle = () => { return { itemList, northArrangement, roofSurfaceList, circuitItemList } } - const getAzimuth = (surface) => { - const { moduleCompass, surfaceCompass, direction } = surface + const getAzimuth = (parent) => { + debugger + const { moduleCompass, surfaceCompass, direction } = parent if (surfaceCompass) { if (surfaceCompass > 180) {