luci-mod-network: fix saving bridge VLANs without member ports
authorJo-Philipp Wich <jo@mein.io>
Fri, 2 Jul 2021 18:47:11 +0000 (20:47 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 2 Jul 2021 18:47:11 +0000 (20:47 +0200)
commitf1f566bfe2a6b0960ba95a5ea05ca4353b766867
tree1e807351072c5b23afd884c50e7b661ef517c70f
parent2869c9cf324a9e057567075d4977c7cc40140938
luci-mod-network: fix saving bridge VLANs without member ports

Calling `uci.set()` with an empty array yields an invalid argument error,
make sure to pass `null` instead in this case.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js