From c55520f01c0d84cdba1e6ef01e945799ee456d97 Mon Sep 17 00:00:00 2001 From: DDD1542 Date: Tue, 17 Mar 2026 15:09:53 +0900 Subject: [PATCH] [agent-pipeline] rollback to 87a7431e --- .../screen/panels/V2PropertiesPanel.tsx | 20 +------------------ .../lib/registry/DynamicComponentRenderer.tsx | 2 +- 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/frontend/components/screen/panels/V2PropertiesPanel.tsx b/frontend/components/screen/panels/V2PropertiesPanel.tsx index a18f3bda..65f55230 100644 --- a/frontend/components/screen/panels/V2PropertiesPanel.tsx +++ b/frontend/components/screen/panels/V2PropertiesPanel.tsx @@ -46,7 +46,7 @@ import { ColorPickerWithTransparent } from "../common/ColorPickerWithTransparent // ComponentRegistry import (동적 ConfigPanel 가져오기용) import { ComponentRegistry } from "@/lib/registry/ComponentRegistry"; -import { columnMetaCache, loadColumnMeta } from "@/lib/registry/DynamicComponentRenderer"; +import { columnMetaCache } from "@/lib/registry/DynamicComponentRenderer"; import { DynamicComponentConfigPanel, hasComponentConfigPanel } from "@/lib/utils/getComponentConfigPanel"; import StyleEditor from "../StyleEditor"; import { Slider } from "@/components/ui/slider"; @@ -97,24 +97,6 @@ export const V2PropertiesPanel: React.FC = ({ // 🆕 전체 테이블 목록 (selected-items-detail-input 등에서 사용) const [allTables, setAllTables] = useState>([]); - // 🆕 선택된 컴포넌트의 테이블에 대한 columnMeta 캐시가 비어 있으면 로드 후 재렌더 - const [columnMetaVersion, setColumnMetaVersion] = useState(0); - useEffect(() => { - if (!selectedComponent) return; - const tblName = - (selectedComponent as any).tableName || - currentTable?.tableName || - tables?.[0]?.tableName; - if (!tblName) return; - if (columnMetaCache[tblName]) return; - loadColumnMeta(tblName).then(() => setColumnMetaVersion((v) => v + 1)); - }, [ - selectedComponent?.id, - (selectedComponent as any)?.tableName, - currentTable?.tableName, - tables?.[0]?.tableName, - ]); - // 🆕 전체 테이블 목록 로드 useEffect(() => { const loadAllTables = async () => { diff --git a/frontend/lib/registry/DynamicComponentRenderer.tsx b/frontend/lib/registry/DynamicComponentRenderer.tsx index 32cc7de1..46b17fe2 100644 --- a/frontend/lib/registry/DynamicComponentRenderer.tsx +++ b/frontend/lib/registry/DynamicComponentRenderer.tsx @@ -30,7 +30,7 @@ export function invalidateColumnMetaCache(tableName?: string): void { } } -export async function loadColumnMeta(tableName: string, forceReload = false): Promise { +async function loadColumnMeta(tableName: string, forceReload = false): Promise { const now = Date.now(); const isStale = columnMetaTimestamp[tableName] && (now - columnMetaTimestamp[tableName] > CACHE_TTL_MS);