From 2984fba5250a3fe539b47a24b5b311029813d963 Mon Sep 17 00:00:00 2001 From: zhuyue Date: Fri, 3 Sep 2021 11:58:12 +0800 Subject: [PATCH] fix: Fix edit subnet params fix edit subnet params Change-Id: Id8473c12f272c0b082bb9c9f5629ea965cd9a10b --- .../Network/Detail/subnetActions/EditSubnet.jsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/pages/network/containers/Network/Detail/subnetActions/EditSubnet.jsx b/src/pages/network/containers/Network/Detail/subnetActions/EditSubnet.jsx index 4a3291e9..1baae7ff 100644 --- a/src/pages/network/containers/Network/Detail/subnetActions/EditSubnet.jsx +++ b/src/pages/network/containers/Network/Detail/subnetActions/EditSubnet.jsx @@ -68,8 +68,14 @@ export default class EditSubnet extends ModalAction { } onSubmit = (values) => { - const { disable_gateway = true } = this.state; - const { gateway_ip, allocation_pools, host_routes, dns, ...rest } = values; + const { + gateway_ip, + allocation_pools, + host_routes, + dns, + disable_gateway, + ...rest + } = values; const allocationPools = getAllocationPools( allocation_pools || this.defaultValue.allocation_pools