debug: TableListComponent formatCellValue 디버그 로그 추가

- 각 컬럼의 inputType, format, value 확인용
- 숫자 포맷팅이 안 되는 원인 파악
This commit is contained in:
kjs 2025-11-03 10:10:22 +09:00
parent 7b676a6aff
commit 68aafb3732
1 changed files with 11 additions and 0 deletions

View File

@ -619,6 +619,17 @@ export const TableListComponent: React.FC<TableListComponentProps> = ({
const formatCellValue = useCallback(
(value: any, column: ColumnConfig, rowData?: Record<string, any>) => {
// 디버그: 첫 번째 데이터 행에서만 로그 출력
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 "-";
// 🎯 엔티티 컬럼 표시 설정이 있는 경우