fix: TableListComponent 코드 변환 로직 완전 제거
문제: - inputType이 'code'인 컬럼에서 코드 변환이 실행되어 - 실제 저장된 값 대신 코드 카테고리 값이 표시됨 - 사용자가 원하는 것은 원본 값 그대로 표시 해결: - 코드 변환 로직 완전 제거 - inputType에 관계없이 원본 값 그대로 표시 - 숫자/날짜 등 기본 포맷팅만 유지 변경: - optimizedConvertCode 호출 제거 - inputType === 'code' 조건 제거 - 원본 데이터 표시로 단순화
This commit is contained in:
parent
e732ed2891
commit
6a329506a8
|
|
@ -675,13 +675,11 @@ export const TableListComponent: React.FC<TableListComponentProps> = ({
|
|||
}
|
||||
|
||||
const meta = columnMeta[column.columnName];
|
||||
if (meta?.webType === "code" && meta?.codeCategory) {
|
||||
const convertedValue = optimizedConvertCode(value, meta.codeCategory);
|
||||
if (convertedValue !== value) return convertedValue;
|
||||
}
|
||||
|
||||
|
||||
// inputType 기반 포맷팅 (columnMeta에서 가져온 inputType 우선)
|
||||
const inputType = meta?.inputType || column.inputType;
|
||||
|
||||
// 숫자 타입 포맷팅
|
||||
if (inputType === "number" || inputType === "decimal") {
|
||||
if (value !== null && value !== undefined && value !== "") {
|
||||
const numValue = typeof value === "string" ? parseFloat(value) : value;
|
||||
|
|
|
|||
Loading…
Reference in New Issue