From 9a3d65d8d030c325633a95b3cb57c6cc3be26999 Mon Sep 17 00:00:00 2001 From: kjs Date: Mon, 3 Nov 2025 14:41:12 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20TableListComponent=20=EC=BD=94=EB=93=9C?= =?UTF-8?q?=20=EB=B3=80=ED=99=98=20=ED=8C=8C=EB=9D=BC=EB=AF=B8=ED=84=B0=20?= =?UTF-8?q?=EC=88=9C=EC=84=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 문제: - optimizedConvertCode(value, meta.codeCategory) ❌ - 함수 정의: optimizedConvertCode(categoryCode, codeValue) - 파라미터 순서가 반대로 전달되어 카테고리 값이 표시됨 해결: - optimizedConvertCode(meta.codeCategory, value) ✅ - 올바른 순서: (카테고리, 코드값) - 이제 코드명이 정상적으로 표시됨 변경: - 파라미터 순서 수정 - 주석 추가로 재발 방지 --- .../lib/registry/components/table-list/TableListComponent.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/lib/registry/components/table-list/TableListComponent.tsx b/frontend/lib/registry/components/table-list/TableListComponent.tsx index 5b2659ee..74a53561 100644 --- a/frontend/lib/registry/components/table-list/TableListComponent.tsx +++ b/frontend/lib/registry/components/table-list/TableListComponent.tsx @@ -682,7 +682,8 @@ export const TableListComponent: React.FC = ({ // 코드 타입: 코드 값 → 코드명 변환 if (inputType === "code" && meta?.codeCategory && value) { try { - const convertedValue = optimizedConvertCode(value, meta.codeCategory); + // optimizedConvertCode(categoryCode, codeValue) 순서 주의! + const convertedValue = optimizedConvertCode(meta.codeCategory, value); // 변환에 성공했으면 변환된 코드명 반환 if (convertedValue && convertedValue !== value) { return convertedValue;