diff options
Diffstat (limited to 'lib/forms-plant')
| -rw-r--r-- | lib/forms-plant/services.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/forms-plant/services.ts b/lib/forms-plant/services.ts index fae38446..219f36e4 100644 --- a/lib/forms-plant/services.ts +++ b/lib/forms-plant/services.ts @@ -740,12 +740,13 @@ export async function updateFormDataInDB( }; } - // 5) 병합 (status 필드 추가) + // 5) 병합 (status 필드 추가, source 필드 보존) const oldItem = dataArray[idx]; const updatedItem = { ...oldItem, ...newData, TAG_NO: oldItem.TAG_NO, // TAG_NO 변경 불가 시 유지 + source: oldItem.source, // 출처 필드 보존 (불변) status: "Updated" // Excel에서 가져온 데이터임을 표시 }; |
