fix: 1:1문의 질문유형도 서버 조인 이름으로
목록과 답변 팝업 모두 bbsFaqNm을 우선 쓰고, 이름이 안 온 행만 잠정 코드표를 거쳐 코드 원문으로 남는다. Co-Authored-By: Claude Opus 5
@fcc172242cc7823227814a37bde39e8c0a6675c2
--- app/(protected)/(basic)/boards/_components/board-post-columns.tsx
+++ app/(protected)/(basic)/boards/_components/board-post-columns.tsx
... | ... | @@ -189,7 +189,8 @@ |
| 189 | 189 |
key: 'type', |
| 190 | 190 |
header: '질문유형', |
| 191 | 191 |
width: 120, |
| 192 |
- render: (row) => formatInquiryTypeLabel(row.typeCode), |
|
| 192 |
+ // 서버 조인 이름 우선 — 코드표(잠정값)는 이름이 안 온 행의 보루다. |
|
| 193 |
+ render: (row) => row.typeName ?? formatInquiryTypeLabel(row.typeCode), |
|
| 193 | 194 |
}, |
| 194 | 195 |
{ key: 'title', header: '질문제목', width: 280, emphasis: true },
|
| 195 | 196 |
{
|
--- app/(protected)/(basic)/boards/inquiries/_components/inquiry-answer-modal.tsx
+++ app/(protected)/(basic)/boards/inquiries/_components/inquiry-answer-modal.tsx
... | ... | @@ -91,7 +91,7 @@ |
| 91 | 91 |
<FoxInput |
| 92 | 92 |
size="md" |
| 93 | 93 |
label="질문유형" |
| 94 |
- value={formatInquiryTypeLabel(post.typeCode)}
|
|
| 94 |
+ value={post.typeName ?? formatInquiryTypeLabel(post.typeCode)}
|
|
| 95 | 95 |
readOnly |
| 96 | 96 |
/> |
| 97 | 97 |
</div> |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?