luci-app-firewall: fix removing networks from zone
Fixes: #4608 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
b36f560abf
commit
4dbf600de6
1 changed files with 3 additions and 1 deletions
|
@ -186,9 +186,11 @@ return view.extend({
|
||||||
}
|
}
|
||||||
|
|
||||||
return Promise.all(tasks).then(function(zone_networks) {
|
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++)
|
for (var i = 1; i < zone_networks.length; i++)
|
||||||
zone_networks[0].addNetwork(zone_networks[i].getName());
|
zone_networks[0].addNetwork(zone_networks[i].getName());
|
||||||
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue