From: Paul Donald Date: Sat, 21 Dec 2024 13:26:42 +0000 (+0000) Subject: luci-base: follow-up fix for ES6 changes X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8a422af6a0e97cdb7b3df1049898731a4b2d153d;p=project%2Fluci.git luci-base: follow-up fix for ES6 changes follow-up for c2fc96cc4c6b35f19638f8c54599041ce6e39da4 Signed-off-by: Paul Donald --- diff --git a/modules/luci-base/htdocs/luci-static/resources/uci.js b/modules/luci-base/htdocs/luci-static/resources/uci.js index e2dcdfbcf9..9047d5a720 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 */