From 7d89a81878238211374d6756a948ce10aac016b7 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 8 Aug 2024 14:27:52 +0700 Subject: [PATCH] fix bug --- src/modules/15_development/components/FollowResult.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/15_development/components/FollowResult.vue b/src/modules/15_development/components/FollowResult.vue index 403f5784b..60f460daf 100644 --- a/src/modules/15_development/components/FollowResult.vue +++ b/src/modules/15_development/components/FollowResult.vue @@ -231,7 +231,10 @@ function onSubmitIndicators() { dialogConfirm($q, () => { showLoader(); http - .put(config.API.developmentMainTab(path, id), formIndicators) + .put(config.API.developmentMainTab(path, id), { + ...formIndicators, + result: status.value === "FINISH" ? formIndicators.result : undefined, + }) .then(() => { success($q, "บันทึกข้อมูลสำเร็จ"); fetchData();