Skip to content

Commit

Permalink
luci-base: follow-up fix for ES6 changes
Browse files Browse the repository at this point in the history
follow-up for c2fc96c

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
  • Loading branch information
1715173329 authored and systemcrash committed Dec 25, 2024
1 parent 527acd5 commit 2da1efb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/luci-base/htdocs/luci-static/resources/uci.js
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ return baseclass.extend(/** @lends LuCI.uci.prototype */ {
}

/* only delete existing options */
if (v[conf]?.[sid].hasOwnProperty(opt)) {
if (v[conf]?.[sid]?.hasOwnProperty(opt)) {
d[conf] ??= { };
d[conf][sid] ??= { };

Expand Down

0 comments on commit 2da1efb

Please sign in to comment.