fix: Fix edit subnet allocation pools

fix remove allocation pools when edit subnet

Change-Id: Id03ab6b5b400bf90e61d52de8825b2e915ec8d36
This commit is contained in:
zhuyue 2021-10-29 15:38:57 +08:00
parent f7e4b18413
commit 3020d4c88a

View File

@ -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