diff --git a/src/components/floor-plan/modal/basic/step/Trestle.jsx b/src/components/floor-plan/modal/basic/step/Trestle.jsx index f350ff5a..070ce979 100644 --- a/src/components/floor-plan/modal/basic/step/Trestle.jsx +++ b/src/components/floor-plan/modal/basic/step/Trestle.jsx @@ -236,7 +236,7 @@ const Trestle = forwardRef((props, ref) => { illuminationTp: managementState?.surfaceTypeValue ?? '', instHt: managementState?.installHeight ?? '', stdWindSpeed: managementState?.standardWindSpeedId ?? '', - stdSnowLd: +managementState?.verticalSnowCover ?? '', + stdSnowLd: managementState?.verticalSnowCover ?? '', inclCd: selectedRoof?.pitch ?? 0, roofPitch: Math.round(hajebichi ?? 0), constTp: constructionList[index].constTp, @@ -304,6 +304,7 @@ const Trestle = forwardRef((props, ref) => { kerabaMargin, roofIndex: roof.index, raft: selectedRaftBase?.clCode, + hajebichi: hajebichi, trestle: { length: lengthBase, hajebichi: hajebichi, diff --git a/src/hooks/module/useModuleTrestle.js b/src/hooks/module/useModuleTrestle.js index 0143e92e..a39c8c1d 100644 --- a/src/hooks/module/useModuleTrestle.js +++ b/src/hooks/module/useModuleTrestle.js @@ -209,7 +209,7 @@ export function useModuleTrestle(props) { stdSnowLd: trestleState.stdSnowLd ?? '', inclCd: trestleState.inclCd ?? '', raftBaseCd: trestleState.raft ?? '', - roofPitch: Math.round(trestleState.roofPitch) ?? '', + roofPitch: trestleState.hajebichi ? trestleState.hajebichi : (trestleState.roofPitch ?? ''), }) .then((res) => { if (res?.data) setConstructionList(res.data) @@ -236,7 +236,7 @@ export function useModuleTrestle(props) { inclCd: trestleState.inclCd ?? '', constTp: trestleState.constTp ?? '', mixMatlNo: trestleState.mixMatlNo ?? '', - roofPitch: trestleState.roofPitch ?? '', + roofPitch: trestleState.hajebichi ? trestleState.hajebichi : (trestleState.roofPitch ?? ''), // workingWidth: trestleState.length ?? '', workingWidth: lengthBase ?? '', },