From b6a0f7509f4a58fd792b239a64e3f48269c73749 Mon Sep 17 00:00:00 2001 From: dujinkim Date: Mon, 8 Dec 2025 09:12:44 +0000 Subject: (임수민) 협력업체 정기 평가 상세보기 수정 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/evaluation/table/evaluation-details-dialog.tsx | 23 +++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'lib/evaluation/table') diff --git a/lib/evaluation/table/evaluation-details-dialog.tsx b/lib/evaluation/table/evaluation-details-dialog.tsx index fe7c204a..e89c9473 100644 --- a/lib/evaluation/table/evaluation-details-dialog.tsx +++ b/lib/evaluation/table/evaluation-details-dialog.tsx @@ -141,6 +141,12 @@ export function EvaluationDetailsDialog({ if (!evaluation) return null + // 일부 뷰 타입에는 점수/등급 필드가 없을 수 있어 안전하게 접근 + const evaluationScore = (evaluation as any)?.evaluationScore as number | null | undefined + const evaluationGrade = (evaluation as any)?.evaluationGrade as string | null | undefined + const finalScore = (evaluation as any)?.finalScore as number | null | undefined + const finalGrade = (evaluation as any)?.finalGrade as string | null | undefined + return ( @@ -192,14 +198,14 @@ export function EvaluationDetailsDialog({ {/* 평가점수/등급 */}
평가점수/등급: - {evaluation.evaluationScore ? ( + {evaluationScore ? (
- {Number(evaluation.evaluationScore).toFixed(1)}점 + {Number(evaluationScore).toFixed(1)}점 - {evaluation.evaluationGrade && ( + {evaluationGrade && ( - {evaluation.evaluationGrade} + {evaluationGrade} )}
@@ -211,14 +217,14 @@ export function EvaluationDetailsDialog({ {/* 확정점수/등급 */}
확정점수/등급: - {evaluation.finalScore ? ( + {finalScore ? (
- {Number(evaluation.finalScore).toFixed(1)}점 + {Number(finalScore).toFixed(1)}점 - {evaluation.finalGrade && ( + {finalGrade && ( - {evaluation.finalGrade} + {finalGrade} )}
@@ -301,7 +307,6 @@ export function EvaluationDetailsDialog({
)} - -- cgit v1.2.3