fixed extra parameters passing in downtime create/update req body

pull/1097/head
smit95tpatel 2021-12-24 23:56:44 +05:30
parent b72f6fb385
commit c19628f61b
1 changed files with 2 additions and 2 deletions

View File

@ -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,
};