mirror of
https://github.com/openwrt/luci.git
synced 2026-02-04 12:06:01 +08:00
luci-mod-network: fix potential null dereference on deleting VLANs
Fixes: #7074
Fixes: 61cef9baad ("luci-mod-network: don't trigger uci save on removing bridge vlans")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user