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

---
 components/form-data-plant/spreadJS-dialog.tsx | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

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

diff --git a/components/form-data-plant/spreadJS-dialog.tsx b/components/form-data-plant/spreadJS-dialog.tsx
index 9f972676..2eb2c8ba 100644
--- a/components/form-data-plant/spreadJS-dialog.tsx
+++ b/components/form-data-plant/spreadJS-dialog.tsx
@@ -92,8 +92,7 @@ interface TemplateViewDialogProps {
   tableData?: GenericData[];
   formCode: string;
   columnsJSON: DataTableColumnJSON[]
-  projectCode: string;
-  packageCode: string;
+  contractItemId: number;
   editableFieldsMap?: Map<string, string[]>;
   onUpdateSuccess?: (updatedValues: Record<string, any> | GenericData[]) => void;
 }
@@ -143,8 +142,7 @@ export function TemplateViewDialog({
   selectedRow,
   tableData = [],
   formCode,
-  projectCode,
-  packageCode,
+  contractItemId,
   columnsJSON,
   editableFieldsMap = new Map(),
   onUpdateSuccess
@@ -1437,8 +1435,7 @@ export function TemplateViewDialog({
 
         const { success, message } = await updateFormDataInDB(
           formCode,
-          projectCode,
-          packageCode,
+          contractItemId,
           dataToSave
         );
 
@@ -1503,8 +1500,7 @@ export function TemplateViewDialog({
             try {
               const { success, message } = await updateFormDataInDB(
                 formCode,
-                projectCode,
-                packageCode,
+                contractItemId,
                 dataToSave
               );
 
@@ -1555,8 +1551,7 @@ export function TemplateViewDialog({
     selectedRow,
     tableData,
     formCode,
-    projectCode,
-    packageCode,
+    contractItemId,
     onUpdateSuccess,
     cellMappings,
     columnsJSON,
-- 
cgit v1.2.3

