From ef4c533ebacc2cdc97e518f30e9a9350004fcdfb Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Mon, 28 Apr 2025 02:13:30 +0000
Subject: ~20250428 작업사항
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/pq/table/import-pq-handler.tsx | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

(limited to 'lib/pq/table/import-pq-handler.tsx')

diff --git a/lib/pq/table/import-pq-handler.tsx b/lib/pq/table/import-pq-handler.tsx
index aa5e6c47..13431ba7 100644
--- a/lib/pq/table/import-pq-handler.tsx
+++ b/lib/pq/table/import-pq-handler.tsx
@@ -77,10 +77,10 @@ export async function processFileImport(
         code: row.Code?.toString().trim() ?? "",
         checkPoint: row["Check Point"]?.toString().trim() ?? "",
         groupName: row["Group Name"]?.toString().trim() ?? "",
-        description: row.Description?.toString() ?? null,
-        remarks: row.Remarks?.toString() ?? null,
-        contractInfo: row["Contract Info"]?.toString() ?? null,
-        additionalRequirement: row["Additional Requirements"]?.toString() ?? null,
+        description: row.Description?.toString() ?? "",
+        remarks: row.Remarks?.toString() ?? "",
+        contractInfo: row["Contract Info"]?.toString() ?? "",
+        additionalRequirement: row["Additional Requirements"]?.toString() ?? "",
       };
       
       // 데이터 유효성 검사
@@ -109,8 +109,7 @@ export async function processFileImport(
       // PQ 생성 서버 액션 호출
       const createResult = await createPq({
         ...cleanedRow,
-        projectId: projectId,
-        isProjectSpecific: !!projectId,
+        projectId: projectId || 0
       });
       
       if (createResult.success) {
-- 
cgit v1.2.3

