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>
(cherry picked from commit a8d85ed71a
)
This commit is contained in:
parent
2d705b273c
commit
49185a3073
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
|||
|
||||
|
||||
function initFirewallState() {
|
||||
return uci.load('firewall');
|
||||
return L.resolveDefault(uci.load('firewall'));
|
||||
}
|
||||
|
||||
function parseEnum(s, values) {
|
||||
|
|
Loading…
Reference in a new issue