mirror of
https://github.com/openwrt/luci
synced 2025-01-07 03:27:12 +08:00
luci-base: follow-up fix for ES6 changes
follow-up for c2fc96cc4c
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
parent
527acd59a8
commit
2da1efba38
@ -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] ??= { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user