luci-mod-status: use the (upper case) return value when stashing the DUID
authorPaul Donald <[email protected]>
Sun, 2 Nov 2025 01:27:35 +0000 (02:27 +0100)
committerPaul Donald <[email protected]>
Sun, 2 Nov 2025 01:27:35 +0000 (02:27 +0100)
Closes #8056

Signed-off-by: Paul Donald <[email protected]>
modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js

index b7476f3d453fa4486cdac30b85f7a293f35f1c4b..2acddca7889585581299c0c2fff5f0b33c90bed7 100644 (file)
@@ -97,8 +97,7 @@ return baseclass.extend({
                        if (host.duid) {
                                if (Array.isArray(host.duid)){
                                        host.duid.map(m => {
-                                               m.toUpperCase();
-                                               this.isDUIDStatic[m] = true;
+                                               this.isDUIDStatic[m.toUpperCase()] = true;
                                        })
                                } else {
                                        this.isDUIDStatic[host.duid.toUpperCase()] = true;