diff --git a/modules/luci-base/htdocs/luci-static/resources/uci.js b/modules/luci-base/htdocs/luci-static/resources/uci.js index e2dcdfbcf96..9047d5a7208 100644 --- a/modules/luci-base/htdocs/luci-static/resources/uci.js +++ b/modules/luci-base/htdocs/luci-static/resources/uci.js @@ -530,7 +530,7 @@ return baseclass.extend(/** @lends LuCI.uci.prototype */ { return null; /* check whether option was changed */ - if (c[conf]?.[sid][opt] != null) + if (c[conf]?.[sid]?.[opt] != null) return c[conf][sid][opt]; /* return base value */