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>
Wed, 15 Apr 2020 07:29:29 +0000 (09:29 +0200)
Fixes: #3914
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/network.js

index c51db25eaa9e56e3207680cd4c4061fa14ae199f..8d825d73a0824d047a6e56706c53c3f577492716 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],