From 3b96344943966cf22572b2baafba442d802f4537 Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Thu, 24 Apr 2025 13:30:58 +0900 Subject: [PATCH] =?UTF-8?q?index=20=EC=84=B8=ED=8C=85=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/roofcover/useRoofAllocationSetting.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/roofcover/useRoofAllocationSetting.js b/src/hooks/roofcover/useRoofAllocationSetting.js index d9c2073c..8109a8bb 100644 --- a/src/hooks/roofcover/useRoofAllocationSetting.js +++ b/src/hooks/roofcover/useRoofAllocationSetting.js @@ -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 })