From c2f781624a8f7f892d3c3100e3b76bf5d9727bb8 Mon Sep 17 00:00:00 2001 From: "Jingwei.Zhang" Date: Fri, 26 Aug 2022 11:20:14 +0800 Subject: [PATCH] fix: fix remove subnet dns and host routes Fix remove the dns nameservers and host routes when edit subnet Change-Id: I97e298f8c66d2df0f7804b7126799186a59731e6 --- src/pages/network/containers/Subnet/actions/Edit.jsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/pages/network/containers/Subnet/actions/Edit.jsx b/src/pages/network/containers/Subnet/actions/Edit.jsx index 159d1c87..8817e63c 100644 --- a/src/pages/network/containers/Subnet/actions/Edit.jsx +++ b/src/pages/network/containers/Subnet/actions/Edit.jsx @@ -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,