From: Jo-Philipp Wich Date: Sat, 11 Apr 2020 19:24:21 +0000 (+0200) Subject: luci-base: network.js: gracefully handle missing wireless config X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=65d673f4671215f2907baebc8d6860f64ba13307;p=oweals%2Fluci.git luci-base: network.js: gracefully handle missing wireless config Ref: https://github.com/openwrt/luci/issues/3895 Signed-off-by: Jo-Philipp Wich --- 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],