From 9ceed79cf32c896f8a998399bf1b296506b2cd4a Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Tue, 8 Apr 2025 03:08:19 +0000
Subject: 로그인 및 미들웨어 처리. 구조 변경
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 components/pq/pq-review-detail.tsx | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

(limited to 'components/pq/pq-review-detail.tsx')

diff --git a/components/pq/pq-review-detail.tsx b/components/pq/pq-review-detail.tsx
index 18af02ed..e1bc5510 100644
--- a/components/pq/pq-review-detail.tsx
+++ b/components/pq/pq-review-detail.tsx
@@ -56,7 +56,9 @@ interface VendorPQAdminReviewProps {
   projectId?: number
   projectName?: string
   projectStatus?: string
-  loadData: () => Promise<PQGroupData[]>
+  // loadData: () => Promise<PQGroupData[]>
+  loadData: (vendorId: number, projectId?: number) => Promise<PQGroupData[]>
+
   pqType: 'general' | 'project'
 }
 
@@ -81,7 +83,8 @@ export default function VendorPQAdminReview({
       const fetchData = async () => {
         setIsDataLoading(true)
         try {
-          const freshData = await loadData()
+          const freshData = await loadData(vendor.id, projectId)
+
           setPqData(freshData)
         } catch (error) {
           console.error("Error loading PQ data:", error)
@@ -98,7 +101,7 @@ export default function VendorPQAdminReview({
     } else {
       setPqData(data)
     }
-  }, [data, loadData, toast])
+  }, [data, loadData, vendor.id, projectId, toast])
 
   // 다이얼로그 상태들
   const [showRequestDialog, setShowRequestDialog] = React.useState(false)
-- 
cgit v1.2.3

