From 49185a307368d68b6c0f169d71635f4bfc278358 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 28 Apr 2020 09:44:11 +0200 Subject: [PATCH] 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 (cherry picked from commit a8d85ed71a14c85bbfca0532bb721f5f89a39845) --- modules/luci-base/htdocs/luci-static/resources/firewall.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-base/htdocs/luci-static/resources/firewall.js b/modules/luci-base/htdocs/luci-static/resources/firewall.js index 4a1531240..40a035444 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) { -- 2.25.1