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

---
 .../table/manual-create-evaluation-target-dialog.tsx               | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

(limited to 'lib/evaluation-target-list/table/manual-create-evaluation-target-dialog.tsx')

diff --git a/lib/evaluation-target-list/table/manual-create-evaluation-target-dialog.tsx b/lib/evaluation-target-list/table/manual-create-evaluation-target-dialog.tsx
index 44497cdb..a00df0f0 100644
--- a/lib/evaluation-target-list/table/manual-create-evaluation-target-dialog.tsx
+++ b/lib/evaluation-target-list/table/manual-create-evaluation-target-dialog.tsx
@@ -61,15 +61,18 @@ import { EVALUATION_TARGET_FILTER_OPTIONS, getDefaultEvaluationYear } from "../v
 import { useSession } from "next-auth/react"
 
 
-
 interface ManualCreateEvaluationTargetDialogProps {
     open: boolean
     onOpenChange: (open: boolean) => void
+    onSuccess?: () => void 
+    onDataChange?: () => void 
 }
 
 export function ManualCreateEvaluationTargetDialog({
     open,
     onOpenChange,
+    onSuccess,
+    onDataChange
 }: ManualCreateEvaluationTargetDialogProps) {
     const router = useRouter()
     const [isSubmitting, setIsSubmitting] = React.useState(false)
@@ -262,6 +265,8 @@ type CreateEvaluationTargetFormValues = z.infer<typeof createEvaluationTargetSch
                 setVendorSearch("")
                 setReviewerSearches({})
                 setReviewerOpens({})
+                onSuccess?.() // 기존 방식 (table.resetRowSelection, router.refresh 등)
+                onDataChange?.() // 새로운 방식 (클라이언트 상태 업데이트)
                 router.refresh()
             } else {
                 toast.error(result.error || "평가 대상 생성에 실패했습니다.")
-- 
cgit v1.2.3

