From 1cdbf77cabcead1a7f76379d3786ede6f43355fb Mon Sep 17 00:00:00 2001
From: joonhoekim <26rote@gmail.com>
Date: Thu, 13 Nov 2025 11:26:08 +0900
Subject: (김준회) 벤더데이터: 해양: 삭제시 Overwrite API 호출할 수 있도록
 projectId 전달 추가
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 components/form-data/form-data-table.tsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'components/form-data/form-data-table.tsx')

diff --git a/components/form-data/form-data-table.tsx b/components/form-data/form-data-table.tsx
index b691ee87..58cd1933 100644
--- a/components/form-data/form-data-table.tsx
+++ b/components/form-data/form-data-table.tsx
@@ -752,6 +752,7 @@ export default function DynamicTable({
 
   // 개별 행 삭제 핸들러
   const handleDeleteRow = (rowData: GenericData) => {
+    console.log('[FORM-DATA-TABLE] Opening delete dialog (single row) with projectId:', projectId)
     setDeleteTarget([rowData]);
     setDeleteDialogOpen(true);
   };
@@ -764,6 +765,7 @@ export default function DynamicTable({
       return;
     }
 
+    console.log('[FORM-DATA-TABLE] Opening delete dialog with projectId:', projectId)
     setDeleteTarget(selectedData);
     setDeleteDialogOpen(true);
   };
@@ -1143,7 +1145,7 @@ export default function DynamicTable({
         formData={deleteTarget}
         formCode={formCode}
         contractItemId={contractItemId}
-        projectId={projectId}
+        projectId={projectId} // 디버깅: {projectId}
         open={deleteDialogOpen}
         onOpenChange={(open) => {
           if (!open) {
-- 
cgit v1.2.3

