From 49935189b64d227923e003efb6951f46f763c4e8 Mon Sep 17 00:00:00 2001 From: kjs Date: Thu, 6 Nov 2025 12:20:58 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=99=94=EB=A9=B4=20=EC=A0=84=ED=99=98?= =?UTF-8?q?=20=ED=9B=84=20=EC=B9=B4=ED=85=8C=EA=B3=A0=EB=A6=AC=20=EB=A7=A4?= =?UTF-8?q?=ED=95=91=20=EA=B0=B1=EC=8B=A0=20=EB=AC=B8=EC=A0=9C=20=ED=95=B4?= =?UTF-8?q?=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - useEffect 의존성 배열에 refreshTrigger 추가 - 데이터 새로고침 시 카테고리 매핑도 자동 갱신 - 매핑 로드 시작/종료 로그 추가하여 디버깅 용이성 향상 --- .../components/table-list/TableListComponent.tsx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/frontend/lib/registry/components/table-list/TableListComponent.tsx b/frontend/lib/registry/components/table-list/TableListComponent.tsx index 98654471..3ef31c10 100644 --- a/frontend/lib/registry/components/table-list/TableListComponent.tsx +++ b/frontend/lib/registry/components/table-list/TableListComponent.tsx @@ -435,7 +435,16 @@ export const TableListComponent: React.FC = ({ .filter(([_, meta]) => meta.inputType === "category") .map(([columnName, _]) => columnName); - if (categoryColumns.length === 0) return; + if (categoryColumns.length === 0) { + console.log("⚠️ [TableList] 카테고리 컬럼 없음"); + return; + } + + console.log("🔄 [TableList] 카테고리 매핑 로드 시작:", { + table: tableConfig.selectedTable, + categoryColumns, + refreshTrigger, + }); const mappings: Record> = {}; @@ -470,7 +479,7 @@ export const TableListComponent: React.FC = ({ }; loadCategoryMappings(); - }, [tableConfig.selectedTable, columnMeta]); + }, [tableConfig.selectedTable, columnMeta, refreshTrigger]); // ======================================== // 데이터 가져오기