luci-base: refactor network devices enumeration
authorLuca Barbato <lu_zero@gentoo.org>
Mon, 3 Jun 2024 09:08:02 +0000 (11:08 +0200)
committerPaul Donald <newtwen+github@gmail.com>
Sat, 14 Sep 2024 20:25:57 +0000 (22:25 +0200)
commit4728618896cd74f68b2b4e11f5568d4a54b14ec0
treec008ffb217f7883cb50314b53d01591fe4d0a71c
parentd6d3c77df08e5caf780d34defbc28ecdbc0f4301
luci-base: refactor network devices enumeration

And make sure to return an empty list if getDevices() returns null.

It happens with batadv.
modules/luci-base/htdocs/luci-static/resources/tools/widgets.js