From ca85f92ccc496c7d6ac96a365d3ca3d5469d16b3 Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Thu, 2 Jan 2025 11:35:17 +0900 Subject: [PATCH] =?UTF-8?q?contextmenu=20=EC=A7=80=EB=B6=95=EC=9E=AC=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD=20=EC=8B=9C=20=EC=9D=BC=EB=B0=98=20=EC=A7=80?= =?UTF-8?q?=EB=B6=95=EB=A9=B4=20=ED=95=A0=EB=8B=B9=EC=9D=B4=EB=9E=91=20?= =?UTF-8?q?=EA=B0=99=EC=9D=80=20=EA=B8=B0=EB=8A=A5=20=ED=95=98=EB=8F=84?= =?UTF-8?q?=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/roofcover/useRoofAllocationSetting.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/hooks/roofcover/useRoofAllocationSetting.js b/src/hooks/roofcover/useRoofAllocationSetting.js index 6c1ace5c..fbff6cdb 100644 --- a/src/hooks/roofcover/useRoofAllocationSetting.js +++ b/src/hooks/roofcover/useRoofAllocationSetting.js @@ -108,6 +108,14 @@ export function useRoofAllocationSetting(id) { // 지붕재 오른쪽 마우스 클릭 후 단일로 지붕재 변경 필요한 경우 const handleSaveContext = () => { + setBasicSetting((prev) => { + return { + ...prev, + selectedRoofMaterial: currentRoofList.find((roof) => roof.selected), + } + }) + + setRoofList(currentRoofList) const selectedRoofMaterial = currentRoofList.find((roof) => roof.selected) setSurfaceShapePattern(currentObject, roofDisplay.column, false, selectedRoofMaterial) closeAll()