summaryrefslogtreecommitdiff
path: root/lib/vendor-document-list/ship/send-to-shi-button.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vendor-document-list/ship/send-to-shi-button.tsx')
-rw-r--r--lib/vendor-document-list/ship/send-to-shi-button.tsx6
1 files changed, 3 insertions, 3 deletions
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
})