summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/forms/services.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/forms/services.ts b/lib/forms/services.ts
index a56b4083..0d5b2d6a 100644
--- a/lib/forms/services.ts
+++ b/lib/forms/services.ts
@@ -1747,6 +1747,11 @@ export async function sendFormDataToSEDP(
// Update status for sent tags
const updatedDataArray = dataArray.map(item => {
if (item.TAG_NO && sentTagNumbers.has(item.TAG_NO)) {
+ // 삭제된 항목(status="Deleted")은 status를 유지하고,
+ // 나머지 항목만 "Sent to S-EDP"로 변경
+ if (item.status === "Deleted") {
+ return item; // Keep status="Deleted" unchanged
+ }
return {
...item,
status: "Sent to S-EDP" // SEDP로 전송된 데이터임을 표시