index 세팅 추가

This commit is contained in:
hyojun.choi 2025-04-24 13:30:58 +09:00
parent 4be94e41a2
commit 3b96344943

View File

@ -469,7 +469,7 @@ export function useRoofAllocationSetting(id) {
const selectedRoofMaterial = roofMaterials.find((roof) => roof.roofMatlCd === value.id)
const newRoofList = currentRoofList.map((roof, idx) => {
if (idx === index) {
return { ...selectedRoofMaterial, selected: roof.selected }
return { ...selectedRoofMaterial, selected: roof.selected, index }
}
return roof
})