summaryrefslogtreecommitdiff
path: root/components/ship-vendor-document/user-vendor-document-table-container.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'components/ship-vendor-document/user-vendor-document-table-container.tsx')
-rw-r--r--components/ship-vendor-document/user-vendor-document-table-container.tsx20
1 files changed, 11 insertions, 9 deletions
diff --git a/components/ship-vendor-document/user-vendor-document-table-container.tsx b/components/ship-vendor-document/user-vendor-document-table-container.tsx
index 0c3390d1..1670732a 100644
--- a/components/ship-vendor-document/user-vendor-document-table-container.tsx
+++ b/components/ship-vendor-document/user-vendor-document-table-container.tsx
@@ -833,7 +833,7 @@ function SubTables() {
const handleDownloadFile = React.useCallback(async (attachment: AttachmentInfo) => {
try {
// 파일 경로 처리
- let downloadPath = attachment.filePath
+ const downloadPath = attachment.filePath
// 공용 다운로드 함수 사용 (보안 검증, 파일 체크 모두 포함)
const result = await downloadFile(downloadPath, attachment.fileName, {
@@ -1240,14 +1240,16 @@ function SubTables() {
</DialogContent>
</Dialog>
- <NewRevisionDialog
- open={newRevisionDialogOpen}
- onOpenChange={setNewRevisionDialogOpen}
- documentId={selectedDocument.documentId}
- documentTitle={selectedDocument.title}
- drawingKind={selectedDocument.drawingKind || 'B4'}
- onSuccess={handleRevisionUploadSuccess}
- />
+ {selectedDocument && (
+ <NewRevisionDialog
+ open={newRevisionDialogOpen}
+ onOpenChange={setNewRevisionDialogOpen}
+ documentId={selectedDocument.documentId}
+ documentTitle={selectedDocument.title}
+ drawingKind={selectedDocument.drawingKind || 'B4'}
+ onSuccess={handleRevisionUploadSuccess}
+ />
+ )}
{/* ✅ 리비전 수정 다이얼로그 */}
<EditRevisionDialog