fix: fix remove subnet dns and host routes

Fix remove the dns nameservers and host routes when edit subnet

Change-Id: I97e298f8c66d2df0f7804b7126799186a59731e6
This commit is contained in:
Jingwei.Zhang 2022-08-26 11:20:14 +08:00
parent d4d6b60db2
commit c2f781624a

View File

@ -77,11 +77,9 @@ export class EditSubnet extends ModalAction {
const allocationPools = getAllocationPools(allocation_pools);
const hostRouters = getHostRouters(
host_routes || this.defaultValue.host_routes
);
const hostRouters = getHostRouters(host_routes);
const dns_nameservers = splitToArray(dns || this.defaultValue.dns);
const dns_nameservers = splitToArray(dns);
const data = {
...rest,