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.tsx6
1 files changed, 4 insertions, 2 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 775dac47..0c3390d1 100644
--- a/components/ship-vendor-document/user-vendor-document-table-container.tsx
+++ b/components/ship-vendor-document/user-vendor-document-table-container.tsx
@@ -967,6 +967,7 @@ function SubTables() {
reviewerId: null,
reviewerName: null,
reviewComments: null,
+ serialNo: uploadResult.data.serialNo || null, // ✅ serialNo 추가
createdAt: new Date(),
updatedAt: new Date(),
stageName: uploadResult.data.stage,
@@ -997,11 +998,12 @@ function SubTables() {
)
if (targetStage) {
- // 기존 revision과 중복 체크 (같은 revision, usage, usageType)
+ // 기존 revision과 중복 체크 (같은 revision, usage, usageType, serialNo)
const isDuplicate = targetStage.revisions.some(rev =>
rev.revision === newRevision.revision &&
rev.usage === newRevision.usage &&
- rev.usageType === newRevision.usageType
+ rev.usageType === newRevision.usageType &&
+ rev.serialNo === newRevision.serialNo
)
if (!isDuplicate) {