luci-mod-network: gracefully handle empty channel lists
authorJo-Philipp Wich <jo@mein.io>
Thu, 27 Oct 2022 14:08:11 +0000 (16:08 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 27 Oct 2022 14:10:47 +0000 (16:10 +0200)
commit9af8486517e87eea837fbce0ce787fc89ab46627
tree61450fe7ab76261231685c91aad661d0f897b45c
parent4d6a2380987e9c9583fda44f2e48f925962ca99b
luci-mod-network: gracefully handle empty channel lists

Avoid undefined value access when the channel list is empty.

Fixes: #5937, #5951
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js