luci-base: follow-up fix for ES6 changes

follow-up for c2fc96cc4c

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
Paul Donald 2024-12-21 13:26:42 +00:00
parent b174d53e66
commit 8a422af6a0
No known key found for this signature in database
GPG Key ID: 3FC4A933962871D2

View 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 */