From c19628f61bed190a126a2fecc930b656ce210e62 Mon Sep 17 00:00:00 2001 From: smit95tpatel Date: Fri, 24 Dec 2021 23:56:44 +0530 Subject: [PATCH] fixed extra parameters passing in downtime create/update req body --- frontend/src/forms/Downtime.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/forms/Downtime.vue b/frontend/src/forms/Downtime.vue index b3b75590..fa63d3b3 100644 --- a/frontend/src/forms/Downtime.vue +++ b/frontend/src/forms/Downtime.vue @@ -271,10 +271,10 @@ export default { return; } - const { serviceId, subStatus } = this.downtime; + const { serviceId, subStatus, ...rest } = this.downtime; const downtime = { - ...this.downtime, + ...rest, ...(!id && { 'service_id': serviceId }), 'sub_status': subStatus, };