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) {