luci-base: follow-up fix for ES6 changes
authorPaul Donald <newtwen+github@gmail.com>
Sat, 21 Dec 2024 13:26:42 +0000 (13:26 +0000)
committerPaul Donald <newtwen+github@gmail.com>
Sat, 21 Dec 2024 13:26:42 +0000 (13:26 +0000)
follow-up for c2fc96cc4c6b35f19638f8c54599041ce6e39da4

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
modules/luci-base/htdocs/luci-static/resources/uci.js

index e2dcdfbcf9668b9a583ae2e454e46b0c30320a75..9047d5a72080c035b1f0937797ea58bf18413776 100644 (file)
@@ -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 */