raft 설정 누락 시 기본값 세팅

This commit is contained in:
hyojun.choi 2025-03-04 11:28:02 +09:00
parent ef14d53250
commit 432604ed55

View File

@ -289,7 +289,7 @@ export function useRoofAllocationSetting(id) {
const handleSaveContext = () => {
basicSettingSave()
const newRoofList = currentRoofList.map((roof, idx) => {
return { ...roof, index: idx }
return { ...roof, index: idx, raft: roof.raft ? roof.raft : roof.raftBaseCd }
})
setBasicSetting((prev) => {
return {
@ -379,7 +379,7 @@ export function useRoofAllocationSetting(id) {
/** 데이터 설정 */
const newRoofList = currentRoofList.map((roof, idx) => {
return { ...roof, index: idx, ...basicInfo }
return { ...roof, index: idx, ...basicInfo, raft: roof.raft ? roof.raft : roof.raftBaseCd }
})
setBasicSetting((prev) => {