Merge "fix: Fix edit subnet params"

This commit is contained in:
Zuul 2021-09-03 09:59:38 +00:00 committed by Gerrit Code Review
commit a33636340d

View File

@ -68,8 +68,14 @@ export default class EditSubnet extends ModalAction {
} }
onSubmit = (values) => { onSubmit = (values) => {
const { disable_gateway = true } = this.state; const {
const { gateway_ip, allocation_pools, host_routes, dns, ...rest } = values; gateway_ip,
allocation_pools,
host_routes,
dns,
disable_gateway,
...rest
} = values;
const allocationPools = getAllocationPools( const allocationPools = getAllocationPools(
allocation_pools || this.defaultValue.allocation_pools allocation_pools || this.defaultValue.allocation_pools