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-plant/form-data-report-dialog.tsx     | 21 ++++++++-------------
 1 file changed, 8 insertions(+), 13 deletions(-)

(limited to 'components/form-data-plant/form-data-report-dialog.tsx')

diff --git a/components/form-data-plant/form-data-report-dialog.tsx b/components/form-data-plant/form-data-report-dialog.tsx
index 2413fc28..9177ab36 100644
--- a/components/form-data-plant/form-data-report-dialog.tsx
+++ b/components/form-data-plant/form-data-report-dialog.tsx
@@ -49,8 +49,7 @@ interface FormDataReportDialogProps {
   columnsJSON: DataTableColumnJSON[];
   reportData: ReportData[];
   setReportData: Dispatch<SetStateAction<ReportData[]>>;
-  projectCode: string;
-  packageCode: string;
+  packageId: number;
   formId: number;
   formCode: string;
 }
@@ -59,8 +58,7 @@ export const FormDataReportDialog: FC<FormDataReportDialogProps> = ({
   columnsJSON,
   reportData,
   setReportData,
-  projectCode,
-  packageCode,
+  packageId,
   formId,
   formCode,
 }) => {
@@ -78,8 +76,8 @@ export const FormDataReportDialog: FC<FormDataReportDialogProps> = ({
   const [generatedFileBlob, setGeneratedFileBlob] = useState<Blob | null>(null);
 
   useEffect(() => {
-    updateReportTempList(projectCode, packageCode, formId, setTempList);
-  }, [projectCode,packageCode, formId]);
+    updateReportTempList(packageId, formId, setTempList);
+  }, [packageId, formId]);
 
   const onClose = async (value: boolean) => {
     if (fileLoading) {
@@ -199,8 +197,7 @@ export const FormDataReportDialog: FC<FormDataReportDialogProps> = ({
       <PublishDialog
         open={publishDialogOpen}
         onOpenChange={setPublishDialogOpen}
-        projectCode={projectCode}
-        packageCode={packageCode}
+        packageId={packageId}
         formCode={formCode}
         fileBlob={generatedFileBlob || undefined}
       />
@@ -397,19 +394,17 @@ const importReportData: ImportReportData = async (
 };
 
 type UpdateReportTempList = (
-  projectCode: string,
-  packageCode: string,
+  packageId: number,
   formId: number,
   setPrevReportTemp: Dispatch<SetStateAction<tempFile[]>>
 ) => void;
 
 const updateReportTempList: UpdateReportTempList = async (
-  projectCode,
-  packageCode,
+  packageId,
   formId,
   setTempList
 ) => {
-  const tempList = await getReportTempList(projectCode,packageCode, formId);
+  const tempList = await getReportTempList(packageId, formId);
 
   setTempList(
     tempList.map((c) => {
-- 
cgit v1.2.3

