fix: Fix edit subnet params
fix edit subnet params Change-Id: Id8473c12f272c0b082bb9c9f5629ea965cd9a10b
This commit is contained in:
parent
73300c38d8
commit
2984fba525
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user