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 829ab14963..cd51a0391c 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 @@ -158,6 +158,8 @@ function deviceRemove(section_id) { if (empty) uci.remove('network', ds); + else + uci.unset('network', ds, this.option); } uci.unset('network', section_id, this.option);