From dcf07fdd5e4ade9169dbb8a632715e2b2bb45018 Mon Sep 17 00:00:00 2001 From: kjs Date: Mon, 3 Nov 2025 10:45:16 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20TableListComponent=20=EB=94=94?= =?UTF-8?q?=EB=B2=84=EA=B7=B8=20=EB=A1=9C=EA=B7=B8=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 숫자 포맷팅 확인 완료 - column_labels 테이블 조회로 정확한 input_type 가져오기 검증 완료 --- .../components/table-list/TableListComponent.tsx | 9 --------- 1 file changed, 9 deletions(-) diff --git a/frontend/lib/registry/components/table-list/TableListComponent.tsx b/frontend/lib/registry/components/table-list/TableListComponent.tsx index 435d0bd3..35920020 100644 --- a/frontend/lib/registry/components/table-list/TableListComponent.tsx +++ b/frontend/lib/registry/components/table-list/TableListComponent.tsx @@ -287,11 +287,9 @@ export const TableListComponent: React.FC = ({ // 컬럼 입력 타입 정보 가져오기 const inputTypes = await tableTypeApi.getColumnInputTypes(tableConfig.selectedTable); - console.log("📋 테이블의 inputType 정보:", tableConfig.selectedTable, inputTypes); const inputTypeMap: Record = {}; inputTypes.forEach((col: any) => { inputTypeMap[col.columnName] = col.inputType; - console.log(` - ${col.columnName}: ${col.inputType}`); }); tableColumnCache.set(cacheKey, { @@ -661,7 +659,6 @@ export const TableListComponent: React.FC = ({ // inputType 기반 포맷팅 (columnMeta에서 가져온 inputType 우선) const inputType = meta?.inputType || column.inputType; if (inputType === "number" || inputType === "decimal") { - console.log(`✅ 숫자 포맷팅 적용: ${column.columnName} = ${value} (inputType: ${inputType})`); if (value !== null && value !== undefined && value !== "") { const numValue = typeof value === "string" ? parseFloat(value) : value; if (!isNaN(numValue)) { @@ -669,12 +666,6 @@ export const TableListComponent: React.FC = ({ } } return String(value); - } else if (value !== null && value !== undefined && value !== "") { - // 숫자처럼 보이지만 inputType이 설정 안된 경우 - const numValue = typeof value === "string" ? parseFloat(value) : value; - if (!isNaN(numValue) && typeof value === "string" && /^\d+$/.test(value)) { - console.log(`⚠️ ${column.columnName}은 숫자 값이지만 inputType이 '${inputType}'로 설정되어 있어 포맷팅 안 됨`); - } } switch (column.format) {