diff --git a/frontend/lib/registry/components/modal-repeater-table/RepeaterTable.tsx b/frontend/lib/registry/components/modal-repeater-table/RepeaterTable.tsx index 4d6c9086..9604e7d2 100644 --- a/frontend/lib/registry/components/modal-repeater-table/RepeaterTable.tsx +++ b/frontend/lib/registry/components/modal-repeater-table/RepeaterTable.tsx @@ -347,12 +347,23 @@ export function RepeaterTable({ // 계산 필드는 편집 불가 if (column.calculated || !column.editable) { + // 숫자 포맷팅 함수: 정수/소수점 자동 구분 + const formatNumber = (val: any): string => { + if (val === undefined || val === null || val === "") return "0"; + const num = typeof val === "number" ? val : parseFloat(val); + if (isNaN(num)) return "0"; + // 정수면 소수점 없이, 소수면 소수점 유지 + if (Number.isInteger(num)) { + return num.toLocaleString("ko-KR"); + } else { + return num.toLocaleString("ko-KR"); + } + }; + return (