From 65d673f4671215f2907baebc8d6860f64ba13307 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 11 Apr 2020 21:24:21 +0200 Subject: [PATCH] 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(-) 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], -- 2.25.1