From 2650b7c0bb0ea12b68a58c0439f72d61df04b2f1 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Fri, 25 Jul 2025 07:51:15 +0000
Subject: (대표님) 정기평가 대상, 미들웨어 수정, nextauth 토큰 처리 개선, GTC
 등 (최겸) 기술영업
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/evaluation-target-list/table/update-evaluation-target.tsx | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'lib/evaluation-target-list/table/update-evaluation-target.tsx')

diff --git a/lib/evaluation-target-list/table/update-evaluation-target.tsx b/lib/evaluation-target-list/table/update-evaluation-target.tsx
index ef24aa9f..9b1f4868 100644
--- a/lib/evaluation-target-list/table/update-evaluation-target.tsx
+++ b/lib/evaluation-target-list/table/update-evaluation-target.tsx
@@ -88,6 +88,7 @@ interface EditEvaluationTargetSheetProps {
     open: boolean
     onOpenChange: (open: boolean) => void
     evaluationTarget: EvaluationTargetWithDepartments | null
+    onDataChange?: () => void // ✅ 새로 추가
 }
 
 // 권한 타입 정의
@@ -102,6 +103,7 @@ export function EditEvaluationTargetSheet({
     open,
     onOpenChange,
     evaluationTarget,
+    onDataChange
 }: EditEvaluationTargetSheetProps) {
     const router = useRouter()
     const [isSubmitting, setIsSubmitting] = React.useState(false)
@@ -259,7 +261,10 @@ export function EditEvaluationTargetSheet({
             if (result.success) {
                 toast.success(result.message || "평가 대상이 성공적으로 수정되었습니다.")
                 onOpenChange(false)
+                onDataChange?.()
                 router.refresh()
+                // window.location.reload()
+                  
             } else {
                 toast.error(result.error || "평가 대상 수정에 실패했습니다.")
             }
-- 
cgit v1.2.3

