From 783ce5594e7fc1efa0de907e844a0d548f3cd888 Mon Sep 17 00:00:00 2001 From: kjs Date: Mon, 27 Oct 2025 11:50:25 +0900 Subject: [PATCH] =?UTF-8?q?=EC=95=84=EC=9D=B4=EB=94=94=EA=B0=92=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/components/common/TableHistoryModal.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/components/common/TableHistoryModal.tsx b/frontend/components/common/TableHistoryModal.tsx index 535061dc..631796f1 100644 --- a/frontend/components/common/TableHistoryModal.tsx +++ b/frontend/components/common/TableHistoryModal.tsx @@ -195,6 +195,10 @@ export function TableHistoryModal({ return null; }; + // 단일 레코드 모드에서 displayColumn 값 가져오기 + const recordDisplayValue = + recordId && displayColumn && detailRecords.length > 0 ? getDisplayValue(detailRecords[0]) : null; + return ( @@ -210,7 +214,7 @@ export function TableHistoryModal({ {recordId - ? `${recordLabel || `레코드 ID: ${recordId}`} - ${tableName} 테이블` + ? `${recordDisplayValue || recordLabel || "-"} - ${tableName} 테이블` : `${tableName} 테이블 전체 이력`}