diff options
-rw-r--r-- | modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js b/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js index 40ab9637b4..09447cdf2b 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js @@ -921,7 +921,7 @@ return baseclass.extend({ ss.handleRemove = function(section_id) { this.map.data.remove('network', section_id); - s.map.addedVLANs = s.map.addedVLANs.filter(function(sid) { + s.map.addedVLANs = (s.map.addedVLANs || []).filter(function(sid) { return sid != section_id; }); |