diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-11-20 13:28:28 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-11-20 13:28:28 +0100 |
commit | 4dbf600de61c0db9052343f0447ee31db79a8346 (patch) | |
tree | a451291708d4c21637bd1702c480f3a1bed879e9 /applications/luci-app-firewall/htdocs | |
parent | b36f560abfcb312ce03f223a1c504f02588ead5a (diff) |
luci-app-firewall: fix removing networks from zone
Fixes: #4608
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-firewall/htdocs')
-rw-r--r-- | applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/zones.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/zones.js b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/zones.js index b24521e1ee..b2f9b81a9b 100644 --- a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/zones.js +++ b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/zones.js @@ -186,9 +186,11 @@ return view.extend({ } return Promise.all(tasks).then(function(zone_networks) { - if (zone_networks[0]) + if (zone_networks[0]) { + zone_networks[0].clearNetworks(); for (var i = 1; i < zone_networks.length; i++) zone_networks[0].addNetwork(zone_networks[i].getName()); + } }); }; |