diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-04-11 21:24:21 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-04-11 21:26:16 +0200 |
commit | 65d673f4671215f2907baebc8d6860f64ba13307 (patch) | |
tree | cb88b797b894f17eb61a534dd333fde75eca1630 /modules/luci-base | |
parent | bfcd962ffd211521e91a875e60ef897335de1fc0 (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.js | 2 |
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], |