luci-base: widgets: fix const -> let variable which is later reassigned
authorPaul Donald <[email protected]>
Fri, 24 Oct 2025 15:30:39 +0000 (17:30 +0200)
committerPaul Donald <[email protected]>
Fri, 24 Oct 2025 15:41:25 +0000 (17:41 +0200)
Signed-off-by: Paul Donald <[email protected]>
modules/luci-base/htdocs/luci-static/resources/tools/widgets.js

index 311803feb2191d09d268480bf36e405c397ed11f..98fc6502f56e706d02d8d486070f0146a5876804 100644 (file)
@@ -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);