From 68aafb3732eedeeafec8bf98f6ec18cb9b68e625 Mon Sep 17 00:00:00 2001 From: kjs Date: Mon, 3 Nov 2025 10:10:22 +0900 Subject: [PATCH] =?UTF-8?q?debug:=20TableListComponent=20formatCellValue?= =?UTF-8?q?=20=EB=94=94=EB=B2=84=EA=B7=B8=20=EB=A1=9C=EA=B7=B8=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 각 컬럼의 inputType, format, value 확인용 - 숫자 포맷팅이 안 되는 원인 파악 --- .../components/table-list/TableListComponent.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/frontend/lib/registry/components/table-list/TableListComponent.tsx b/frontend/lib/registry/components/table-list/TableListComponent.tsx index 2b0cf501..02705896 100644 --- a/frontend/lib/registry/components/table-list/TableListComponent.tsx +++ b/frontend/lib/registry/components/table-list/TableListComponent.tsx @@ -619,6 +619,17 @@ export const TableListComponent: React.FC = ({ const formatCellValue = useCallback( (value: any, column: ColumnConfig, rowData?: Record) => { + // 디버그: 첫 번째 데이터 행에서만 로그 출력 + if (rowData && Object.keys(rowData)[0]) { + console.log(`🔍 formatCellValue 호출:`, { + columnName: column.columnName, + inputType: column.inputType, + format: column.format, + value, + valueType: typeof value, + }); + } + if (value === null || value === undefined) return "-"; // 🎯 엔티티 컬럼 표시 설정이 있는 경우