From 08e91ccdf68585c5f7499a33cffd19a04a7834aa Mon Sep 17 00:00:00 2001
From: joonhoekim <26rote@gmail.com>
Date: Fri, 3 Oct 2025 14:36:04 +0900
Subject: (김준회) 벤더데이터 입력 템플릿 보기 문제 처리
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

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

(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 09745bb0..d5d79735 100644
--- a/components/form-data/form-data-table.tsx
+++ b/components/form-data/form-data-table.tsx
@@ -304,6 +304,19 @@ export default function DynamicTable({
 
       const templateResult = await fetchTemplateFromSEDP(projectCode, formCode);
 
+      // 🔍 전달되는 템플릿 데이터 로깅
+      console.log('📊 Template data received from SEDP:', {
+        count: Array.isArray(templateResult) ? templateResult.length : 'not array',
+        isArray: Array.isArray(templateResult),
+        data: templateResult
+      });
+      
+      if (Array.isArray(templateResult)) {
+        templateResult.forEach((tmpl, idx) => {
+          console.log(`  [${idx}] TMPL_ID: ${tmpl?.TMPL_ID || 'MISSING'}, NAME: ${tmpl?.NAME || 'N/A'}, TYPE: ${tmpl?.TMPL_TYPE || 'N/A'}`);
+        });
+      }
+
       setTemplateData(templateResult);
       setTemplateDialogOpen(true);
 
-- 
cgit v1.2.3

