summaryrefslogtreecommitdiff
path: root/components/form-data/form-data-table.tsx
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-10-03 14:36:04 +0900
committerjoonhoekim <26rote@gmail.com>2025-10-03 14:36:04 +0900
commit08e91ccdf68585c5f7499a33cffd19a04a7834aa (patch)
treefdb6f92b63b75c541e6214d34b1c7bd812602b9d /components/form-data/form-data-table.tsx
parentfca5e37d43543ed1e6e680a779d340b1cc4427cd (diff)
(김준회) 벤더데이터 입력 템플릿 보기 문제 처리
Diffstat (limited to 'components/form-data/form-data-table.tsx')
-rw-r--r--components/form-data/form-data-table.tsx13
1 files changed, 13 insertions, 0 deletions
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);