summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-04-11 21:24:21 +0200
committerJo-Philipp Wich <jo@mein.io>2020-04-11 21:26:16 +0200
commit65d673f4671215f2907baebc8d6860f64ba13307 (patch)
treecb88b797b894f17eb61a534dd333fde75eca1630 /modules/luci-base
parentbfcd962ffd211521e91a875e60ef897335de1fc0 (diff)
luci-base: network.js: gracefully handle missing wireless config
Ref: https://github.com/openwrt/luci/issues/3895 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/network.js2
1 files changed, 1 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 bca67849b..c51db25ea 100644
--- a/modules/luci-base/htdocs/luci-static/resources/network.js
+++ b/modules/luci-base/htdocs/luci-static/resources/network.js
@@ -356,7 +356,7 @@ function initNetworkState(refresh) {
L.resolveDefault(callLuciWirelessDevices(), {}),
L.resolveDefault(callLuciHostHints(), {}),
getProtocolHandlers(),
- uci.load(['network', 'wireless', 'luci'])
+ L.resolveDefault(uci.load(['network', 'wireless', 'luci']))
]).then(function(data) {
var netifd_ifaces = data[0],
board_json = data[1],