summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-04-28 09:44:11 +0200
committerJo-Philipp Wich <jo@mein.io>2020-04-28 09:47:08 +0200
commita8d85ed71a14c85bbfca0532bb721f5f89a39845 (patch)
tree696e93a40b6e71ae4caba016ae3f9732eda78ef7 /modules
parent066d92d01387229535ad84af3ec5ac308b2777d9 (diff)
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 <jo@mein.io>
Diffstat (limited to 'modules')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/firewall.js2
1 files changed, 1 insertions, 1 deletions
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) {