summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-04-15 09:27:10 +0200
committerJo-Philipp Wich <jo@mein.io>2020-04-15 09:29:29 +0200
commit0e22d4d87e9965a2ff74707d309a1bbb3c8334a2 (patch)
tree1ec9e893ef50ccfbbcc1a0e3cc71ce7065d84db1 /modules
parentd8516b273493d464c92269dd4bff12012c4bd58c (diff)
luci-base: network.js: don't fail loading network config on missing wireless
Fixes: #3914 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/network.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/network.js b/modules/luci-base/htdocs/luci-static/resources/network.js
index c51db25eaa..8d825d73a0 100644
--- a/modules/luci-base/htdocs/luci-static/resources/network.js
+++ b/modules/luci-base/htdocs/luci-static/resources/network.js
@@ -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],