From 3020d4c88aab62cc097673689edac4663afb0f73 Mon Sep 17 00:00:00 2001 From: zhuyue Date: Fri, 29 Oct 2021 15:38:57 +0800 Subject: [PATCH] fix: Fix edit subnet allocation pools fix remove allocation pools when edit subnet Change-Id: Id03ab6b5b400bf90e61d52de8825b2e915ec8d36 --- .../containers/Network/Detail/subnetActions/EditSubnet.jsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pages/network/containers/Network/Detail/subnetActions/EditSubnet.jsx b/src/pages/network/containers/Network/Detail/subnetActions/EditSubnet.jsx index 1baae7ff..bf494089 100644 --- a/src/pages/network/containers/Network/Detail/subnetActions/EditSubnet.jsx +++ b/src/pages/network/containers/Network/Detail/subnetActions/EditSubnet.jsx @@ -77,9 +77,7 @@ export default class EditSubnet extends ModalAction { ...rest } = values; - const allocationPools = getAllocationPools( - allocation_pools || this.defaultValue.allocation_pools - ); + const allocationPools = getAllocationPools(allocation_pools); const hostRouters = getHostRouters( host_routes || this.defaultValue.host_routes