From 65d673f4671215f2907baebc8d6860f64ba13307 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 11 Apr 2020 21:24:21 +0200 Subject: luci-base: network.js: gracefully handle missing wireless config Ref: https://github.com/openwrt/luci/issues/3895 Signed-off-by: Jo-Philipp Wich --- modules/luci-base/htdocs/luci-static/resources/network.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/luci-base/htdocs/luci-static/resources/network.js') diff --git a/modules/luci-base/htdocs/luci-static/resources/network.js b/modules/luci-base/htdocs/luci-static/resources/network.js index bca67849b4..c51db25eaa 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], -- cgit v1.2.3