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:48:09 +0000 (20:48 +0200)
commit0ededb9bccf49aada1f81b65947f38a35124834c
tree9e3cdf0aee30ce4886503b33bf4f419f3719a099
parentae00d0f7126748b5f1377cb8cf37d704fdb7c402
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>
(cherry picked from commit f1f566bfe2a6b0960ba95a5ea05ca4353b766867)
modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js