raft 설정 누락 시 기본값 세팅
This commit is contained in:
parent
ef14d53250
commit
432604ed55
@ -289,7 +289,7 @@ export function useRoofAllocationSetting(id) {
|
|||||||
const handleSaveContext = () => {
|
const handleSaveContext = () => {
|
||||||
basicSettingSave()
|
basicSettingSave()
|
||||||
const newRoofList = currentRoofList.map((roof, idx) => {
|
const newRoofList = currentRoofList.map((roof, idx) => {
|
||||||
return { ...roof, index: idx }
|
return { ...roof, index: idx, raft: roof.raft ? roof.raft : roof.raftBaseCd }
|
||||||
})
|
})
|
||||||
setBasicSetting((prev) => {
|
setBasicSetting((prev) => {
|
||||||
return {
|
return {
|
||||||
@ -379,7 +379,7 @@ export function useRoofAllocationSetting(id) {
|
|||||||
|
|
||||||
/** 데이터 설정 */
|
/** 데이터 설정 */
|
||||||
const newRoofList = currentRoofList.map((roof, idx) => {
|
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) => {
|
setBasicSetting((prev) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user