Compare commits

..

No commits in common. "cc1f2c22a9ac2f6a98f1474e5a9717f4bbf43be0" and "d5730815112ace90f6f5f0ae3b4f8aca3e3a9236" have entirely different histories.

2 changed files with 1 additions and 8 deletions

View File

@ -176,13 +176,6 @@ const Trestle = forwardRef((props, ref) => {
const onChangeHajebichi = (e) => {
setHajebichi(e)
// roofs selectedRoof.index
if (selectedRoof && selectedRoof.index !== undefined) {
const updatedRoofs = roofs.map((roof, index) => (index === selectedRoof.index ? { ...roof, hajebichi: Number(e) } : roof))
setRoofs(updatedRoofs)
}
dispatch({
type: 'SET_HAJEBICHI',
roof: {

View File

@ -2544,7 +2544,7 @@ export const useTrestle = () => {
mixMatlNo: module.mixMatlNo,
raftBaseCd: addRoof.raft ?? addRoof.raftBaseCd,
inclCd: addRoof.pitch,
roofPitch: !!addRoof.hajebichi ? addRoof.hajebichi : Number(addRoof.roofPchBase),
roofPitch: !addRoof.roofPchBase ? addRoof.roofPchBase : Number(addRoof.roofPchBase),
exposedLowerBottomTotCnt: result.exposedBottom, // 노출 최하면 갯수
exposedHalfBottomTotCnt: result.exposedHalfBottom, // 노출 반하면 갯수
exposedTopTotCnt: result.exposedTop, // 노출 상면 총 수