diff --git a/frontend/lib/registry/components/table-list/TableListComponent.tsx b/frontend/lib/registry/components/table-list/TableListComponent.tsx index 7b374507..8b94ef15 100644 --- a/frontend/lib/registry/components/table-list/TableListComponent.tsx +++ b/frontend/lib/registry/components/table-list/TableListComponent.tsx @@ -428,18 +428,29 @@ export const TableListComponent: React.FC = ({ useEffect(() => { const loadCategoryMappings = async () => { - if (!tableConfig.selectedTable || !columnMeta) return; + if (!tableConfig.selectedTable) return; // 로딩 중에는 매핑 로드하지 않음 (데이터 로드 완료 후에만 실행) if (loading) return; + // columnMeta가 비어있으면 대기 + const columnMetaKeys = Object.keys(columnMeta || {}); + if (columnMetaKeys.length === 0) { + console.log("⏳ [TableList] columnMeta 로딩 대기 중..."); + return; + } + try { const categoryColumns = Object.entries(columnMeta) .filter(([_, meta]) => meta.inputType === "category") .map(([columnName, _]) => columnName); if (categoryColumns.length === 0) { - console.log("⚠️ [TableList] 카테고리 컬럼 없음"); + console.log("⚠️ [TableList] 카테고리 컬럼 없음:", { + table: tableConfig.selectedTable, + columnMetaKeys, + columnMeta, + }); return; }