luci-base: network.js: don't fail loading network config on missing wireless
authorJo-Philipp Wich <jo@mein.io>
Wed, 15 Apr 2020 07:27:10 +0000 (09:27 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 7 May 2020 17:40:49 +0000 (19:40 +0200)
Fixes: #3914
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 0e22d4d87e9965a2ff74707d309a1bbb3c8334a2)

modules/luci-base/htdocs/luci-static/resources/network.js

index ae22a2e78b7081bbb82e3b8fd554e332b73b62b1..6dadcb7307162b2b50636e9a00f2a39191b3d2f7 100644 (file)
@@ -356,7 +356,9 @@ function initNetworkState(refresh) {
                        L.resolveDefault(callLuciWirelessDevices(), {}),
                        L.resolveDefault(callLuciHostHints(), {}),
                        getProtocolHandlers(),
-                       L.resolveDefault(uci.load(['network', 'wireless', 'luci']))
+                       L.resolveDefault(uci.load('network')),
+                       L.resolveDefault(uci.load('wireless')),
+                       L.resolveDefault(uci.load('luci'))
                ]).then(function(data) {
                        var netifd_ifaces = data[0],
                            board_json    = data[1],