From 5870b73785715d1585531e655c06d8c068eb64ac Mon Sep 17 00:00:00 2001
From: joonhoekim <26rote@gmail.com>
Date: Thu, 27 Nov 2025 17:53:34 +0900
Subject: (김준회) Revert "(대표님) EDP 작업사항" 태그 가져오기 실패 등 에러로
 인한 Revert 처리
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../form-data-report-temp-uploaded-list-tab.tsx       | 19 ++++++++-----------
 1 file changed, 8 insertions(+), 11 deletions(-)

(limited to 'components/form-data-plant/form-data-report-temp-uploaded-list-tab.tsx')

diff --git a/components/form-data-plant/form-data-report-temp-uploaded-list-tab.tsx b/components/form-data-plant/form-data-report-temp-uploaded-list-tab.tsx
index 1b6cefaf..4cfbad69 100644
--- a/components/form-data-plant/form-data-report-temp-uploaded-list-tab.tsx
+++ b/components/form-data-plant/form-data-report-temp-uploaded-list-tab.tsx
@@ -39,14 +39,13 @@ import { getReportTempList, deleteReportTempFile } from "@/lib/forms-plant/servi
 import { VendorDataReportTemps } from "@/db/schema/vendorData";
 
 interface FormDataReportTempUploadedListTabProps {
-  projectCode: string;
-  packageCode: string;
+  packageId: number;
   formId: number;
 }
 
 export const FormDataReportTempUploadedListTab: FC<
   FormDataReportTempUploadedListTabProps
-> = ({ projectCode,packageCode , formId }) => {
+> = ({ packageId, formId }) => {
   const params = useParams();
   const lng = (params?.lng as string) || "ko";
   const { t } = useTranslation(lng, "engineering");
@@ -58,12 +57,12 @@ export const FormDataReportTempUploadedListTab: FC<
 
   useEffect(() => {
     const getTempFiles = async () => {
-      await updateReportTempList(projectCode,packageCode, formId, setPrevReportTemp);
+      await updateReportTempList(packageId, formId, setPrevReportTemp);
       setIsLoading(false);
     };
 
     getTempFiles();
-  }, [projectCode,packageCode, formId]);
+  }, [packageId, formId]);
 
   return (
     <div>
@@ -71,7 +70,7 @@ export const FormDataReportTempUploadedListTab: FC<
       <UploadedTempFiles
         prevReportTemp={prevReportTemp}
         updateReportTempList={() =>
-          updateReportTempList(projectCode,packageCode, formId, setPrevReportTemp)
+          updateReportTempList(packageId, formId, setPrevReportTemp)
         }
         isLoading={isLoading}
         t={t}
@@ -81,19 +80,17 @@ export const FormDataReportTempUploadedListTab: FC<
 };
 
 type UpdateReportTempList = (
-  projectCode: string,
-  packageCode: string,
+  packageId: number,
   formId: number,
   setPrevReportTemp: Dispatch<SetStateAction<VendorDataReportTemps[]>>
 ) => Promise<void>;
 
 const updateReportTempList: UpdateReportTempList = async (
-  projectCode,
-  packageCode,
+  packageId,
   formId,
   setPrevReportTemp
 ) => {
-  const tempList = await getReportTempList(projectCode, packageCode, formId);
+  const tempList = await getReportTempList(packageId, formId);
   setPrevReportTemp(tempList);
 };
 
-- 
cgit v1.2.3

