fix: table-list 컴포넌트 컬럼 추가 시 체크박스 등 설정 유지
- UnifiedPropertiesPanel의 handleConfigChange에서 config 병합 로직 추가 - 기존 config와 새 config를 merge하여 checkbox 등 다른 설정이 사라지지 않도록 수정 - 이전에는 부분 업데이트된 config만 전달되어 다른 속성들이 손실되는 문제 해결
This commit is contained in:
parent
d7db8cb07a
commit
6f3bcd7b46
|
|
@ -279,7 +279,10 @@ export const UnifiedPropertiesPanel: React.FC<UnifiedPropertiesPanelProps> = ({
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleConfigChange = (newConfig: any) => {
|
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 가져오기 시도
|
// 🆕 ComponentRegistry에서 ConfigPanel 가져오기 시도
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue