From 321c52a1f8dc1b2872075f462bca6b16f99c3486 Mon Sep 17 00:00:00 2001 From: kjs Date: Thu, 15 Jan 2026 13:51:32 +0900 Subject: [PATCH] UnifiedRepeaterConfigPanel: Update render mode handling to reset modal settings when switching from modal to inline mode --- .../UnifiedRepeaterConfigPanel.tsx | 31 ++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/frontend/components/unified/config-panels/UnifiedRepeaterConfigPanel.tsx b/frontend/components/unified/config-panels/UnifiedRepeaterConfigPanel.tsx index 62b78c19..044fa037 100644 --- a/frontend/components/unified/config-panels/UnifiedRepeaterConfigPanel.tsx +++ b/frontend/components/unified/config-panels/UnifiedRepeaterConfigPanel.tsx @@ -477,7 +477,36 @@ export const UnifiedRepeaterConfigPanel: React.FC - { + const newMode = value as any; + const currentMode = config.renderMode; + + // 모달 → 인라인 모드로 변경 시: isSourceDisplay 컬럼 제거 및 모달 설정 초기화 + if (currentMode === "modal" && newMode === "inline") { + const filteredColumns = config.columns.filter((col) => !col.isSourceDisplay); + updateConfig({ + renderMode: newMode, + columns: filteredColumns, + dataSource: { + ...config.dataSource, + sourceTable: undefined, + foreignKey: undefined, + referenceKey: undefined, + displayColumn: undefined, + }, + modal: { + ...config.modal, + searchFields: [], + sourceDisplayColumns: [], + }, + }); + } else { + updateConfig({ renderMode: newMode }); + } + }} + >