From 6f3bcd7b46e7b676676453b781c2148ef2290ec3 Mon Sep 17 00:00:00 2001 From: kjs Date: Thu, 20 Nov 2025 17:18:30 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20table-list=20=EC=BB=B4=ED=8F=AC=EB=84=8C?= =?UTF-8?q?=ED=8A=B8=20=EC=BB=AC=EB=9F=BC=20=EC=B6=94=EA=B0=80=20=EC=8B=9C?= =?UTF-8?q?=20=EC=B2=B4=ED=81=AC=EB=B0=95=EC=8A=A4=20=EB=93=B1=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95=20=EC=9C=A0=EC=A7=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - UnifiedPropertiesPanel의 handleConfigChange에서 config 병합 로직 추가 - 기존 config와 새 config를 merge하여 checkbox 등 다른 설정이 사라지지 않도록 수정 - 이전에는 부분 업데이트된 config만 전달되어 다른 속성들이 손실되는 문제 해결 --- frontend/components/screen/panels/UnifiedPropertiesPanel.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/components/screen/panels/UnifiedPropertiesPanel.tsx b/frontend/components/screen/panels/UnifiedPropertiesPanel.tsx index 7ec802f3..1d4829bb 100644 --- a/frontend/components/screen/panels/UnifiedPropertiesPanel.tsx +++ b/frontend/components/screen/panels/UnifiedPropertiesPanel.tsx @@ -279,7 +279,10 @@ export const UnifiedPropertiesPanel: React.FC = ({ }; const handleConfigChange = (newConfig: any) => { - onUpdateProperty(selectedComponent.id, "componentConfig.config", newConfig); + // 기존 config와 병합하여 다른 속성 유지 + const currentConfig = selectedComponent.componentConfig?.config || {}; + const mergedConfig = { ...currentConfig, ...newConfig }; + onUpdateProperty(selectedComponent.id, "componentConfig.config", mergedConfig); }; // 🆕 ComponentRegistry에서 ConfigPanel 가져오기 시도