From 0e68be98b4ad4691af77232cb0b02b17af825ba3 Mon Sep 17 00:00:00 2001
From: joonhoekim <26rote@gmail.com>
Date: Wed, 6 Aug 2025 04:25:00 +0000
Subject: (김준회) 문서/도서 리스트 및 제출(조선) 메뉴 디버깅(dolce) -
 attachment revisionId 누락건 해결 - crypto 모듈에서 deprecated des-ecb
 알고리즘 사용을 위한 추가 처리 - enhancedDocumentsView에 projectId 추가 -
 route에서 contractId -> projectId 사용하도록 변경
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/vendor-document-list/ship/send-to-shi-button.tsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'lib/vendor-document-list/ship/send-to-shi-button.tsx')

diff --git a/lib/vendor-document-list/ship/send-to-shi-button.tsx b/lib/vendor-document-list/ship/send-to-shi-button.tsx
index c67c7b2c..7236dfde 100644
--- a/lib/vendor-document-list/ship/send-to-shi-button.tsx
+++ b/lib/vendor-document-list/ship/send-to-shi-button.tsx
@@ -44,10 +44,10 @@ export function SendToSHIButton({
 
   const targetSystem = projectType === 'ship' ? "DOLCE" : "SWP"
   
-  // 문서에서 유효한 계약 ID 목록 추출
+  // 문서에서 유효한 계약 ID 목록 추출 (projectId 사용)
   const documentsContractIds = React.useMemo(() => {
     const validIds = documents
-      .map(doc => doc.projectId)
+      .map(doc => (doc as any).projectId)
       .filter((id): id is number => typeof id === 'number' && id > 0)
     
     const uniqueIds = [...new Set(validIds)]
@@ -185,7 +185,7 @@ export function SendToSHIButton({
       setSyncProgress(0)
       setCurrentSyncingContract(null)
       
-      const errorMessage = syncUtils.formatError(error as any)
+      const errorMessage = syncUtils.formatError(error as Error)
       toast.error('동기화 실패', {
         description: errorMessage
       })
-- 
cgit v1.2.3

