From: Jo-Philipp Wich Date: Wed, 15 Apr 2020 07:27:10 +0000 (+0200) Subject: luci-base: network.js: don't fail loading network config on missing wireless X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b3c0560a937501b90bd94f589572aab9c2182895;p=oweals%2Fluci.git luci-base: network.js: don't fail loading network config on missing wireless Fixes: #3914 Signed-off-by: Jo-Philipp Wich (cherry picked from commit 0e22d4d87e9965a2ff74707d309a1bbb3c8334a2) --- diff --git a/modules/luci-base/htdocs/luci-static/resources/network.js b/modules/luci-base/htdocs/luci-static/resources/network.js index ae22a2e78..6dadcb730 100644 --- a/modules/luci-base/htdocs/luci-static/resources/network.js +++ b/modules/luci-base/htdocs/luci-static/resources/network.js @@ -356,7 +356,9 @@ function initNetworkState(refresh) { L.resolveDefault(callLuciWirelessDevices(), {}), L.resolveDefault(callLuciHostHints(), {}), getProtocolHandlers(), - L.resolveDefault(uci.load(['network', 'wireless', 'luci'])) + L.resolveDefault(uci.load('network')), + L.resolveDefault(uci.load('wireless')), + L.resolveDefault(uci.load('luci')) ]).then(function(data) { var netifd_ifaces = data[0], board_json = data[1],