From d3cbf6e6853c1944d0fd163e40fdb76301715154 Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Fri, 24 Oct 2025 17:30:39 +0200 Subject: [PATCH] luci-base: widgets: fix const -> let variable which is later reassigned Signed-off-by: Paul Donald --- modules/luci-base/htdocs/luci-static/resources/tools/widgets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js b/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js index 311803feb2..98fc6502f5 100644 --- a/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js +++ b/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js @@ -190,7 +190,7 @@ var CBIZoneSelect = form.ListValue.extend({ } else { const anyval = node.querySelector('[data-value="*"]') || ''; - const emptyval = node.querySelector('[data-value=""]') || ''; + let emptyval = node.querySelector('[data-value=""]') || ''; if (emptyval == null && anyval) { emptyval = anyval.cloneNode(true); -- 2.30.2