feature/ysCha #23

Closed
ysCha wants to merge 259 commits from feature/ysCha into main
Showing only changes of commit ba9a49501c - Show all commits

View File

@ -248,16 +248,22 @@ export function useRoofAllocationSetting(id) {
swalFire({ type: 'alert', icon: 'error', text: getMessage('roof.exceed.count') }) swalFire({ type: 'alert', icon: 'error', text: getMessage('roof.exceed.count') })
return return
} }
setCurrentRoofList([
...currentRoofList, const originCurrentRoofList = currentRoofList.map((roof) => {
{ return {
...currentRoofMaterial, ...roof,
selected: false, selected: false,
}
})
originCurrentRoofList.push({
...currentRoofMaterial,
selected: true,
id: currentRoofMaterial.roofMatlCd, id: currentRoofMaterial.roofMatlCd,
name: currentRoofMaterial.roofMatlNm, name: currentRoofMaterial.roofMatlNm,
index: currentRoofList.length, index: currentRoofList.length,
}, })
])
setCurrentRoofList(originCurrentRoofList)
} }
/** /**