From a8d85ed71a14c85bbfca0532bb721f5f89a39845 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 28 Apr 2020 09:44:11 +0200 Subject: luci-base: firewall.js: gracefully handle missing uci configuration Ref: https://forum.openwrt.org/t/luci-rpc-error/61760 Signed-off-by: Jo-Philipp Wich --- modules/luci-base/htdocs/luci-static/resources/firewall.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/luci-base/htdocs/luci-static') diff --git a/modules/luci-base/htdocs/luci-static/resources/firewall.js b/modules/luci-base/htdocs/luci-static/resources/firewall.js index 4a15312407..40a0354446 100644 --- a/modules/luci-base/htdocs/luci-static/resources/firewall.js +++ b/modules/luci-base/htdocs/luci-static/resources/firewall.js @@ -5,7 +5,7 @@ function initFirewallState() { - return uci.load('firewall'); + return L.resolveDefault(uci.load('firewall')); } function parseEnum(s, values) { -- cgit v1.2.3