From 8a422af6a0e97cdb7b3df1049898731a4b2d153d Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Sat, 21 Dec 2024 13:26:42 +0000 Subject: [PATCH] luci-base: follow-up fix for ES6 changes follow-up for c2fc96cc4c6b35f19638f8c54599041ce6e39da4 Signed-off-by: Paul Donald --- modules/luci-base/htdocs/luci-static/resources/uci.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.30.2