From f4d27f51a39fa524f7c1eb63014c9e29e3e9142b Mon Sep 17 00:00:00 2001 From: kjs Date: Fri, 21 Nov 2025 09:40:24 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=B9=B4=ED=85=8C=EA=B3=A0=EB=A6=AC=20?= =?UTF-8?q?=EA=B0=92=20=EB=A7=A4=ED=95=91=EC=9D=84=20=EC=98=AC=EB=B0=94?= =?UTF-8?q?=EB=A5=B8=20=EC=86=8D=EC=84=B1=EB=AA=85=EC=9C=BC=EB=A1=9C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 문제: - value: undefined, label: undefined - 잘못된 속성명 사용 (categoryValue, categoryLabel) 원인: - API 응답 실제 구조: - valueCode: 'CATEGORY_154396' - valueLabel: '대기' 해결: - v.categoryValue → v.valueCode - v.categoryLabel → v.valueLabel 이제 다중선택 카테고리 select가 완벽히 작동합니다: ✅ 다중선택 모드 활성화 ✅ 카테고리 옵션 로딩 ✅ 라벨 정상 표시 ✅ 콤마 구분자로 저장 --- .../registry/components/select-basic/SelectBasicComponent.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/lib/registry/components/select-basic/SelectBasicComponent.tsx b/frontend/lib/registry/components/select-basic/SelectBasicComponent.tsx index 497dd5c0..5915a58c 100644 --- a/frontend/lib/registry/components/select-basic/SelectBasicComponent.tsx +++ b/frontend/lib/registry/components/select-basic/SelectBasicComponent.tsx @@ -165,8 +165,8 @@ const SelectBasicComponent: React.FC = ({ const activeValues = response.data.filter((v) => v.isActive !== false); const options = activeValues.map((v) => ({ - value: v.category_value || v.categoryValue || v.value, - label: v.category_label || v.categoryLabel || v.label || v.category_value || v.categoryValue || v.value, + value: v.valueCode, + label: v.valueLabel || v.valueCode, })); console.log("✅ [SelectBasic] 카테고리 옵션 설정:", {