From 2da1efba3859df23fca35096b8e9d7e0821e0d8e Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Wed, 25 Dec 2024 13:44:57 +0800 Subject: [PATCH] luci-base: follow-up fix for ES6 changes follow-up for c2fc96cc4c6b35f19638f8c54599041ce6e39da4 Signed-off-by: Tianling Shen --- 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 9047d5a720..d18e9d98fe 100644 --- a/modules/luci-base/htdocs/luci-static/resources/uci.js +++ b/modules/luci-base/htdocs/luci-static/resources/uci.js @@ -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] ??= { }; -- 2.30.2