fix meshctrl tag filter search (#6798)

Jakub Maruszczak committed Feb 20, 2025 at 23:16 UTC 5ee9aa2410d7ec014e5c43f0b3980be08ba098a6
1 file changed +2 -2
meshctrl.js
+2 -2
@@ -2666,8 +2666,8 @@ function getDevicesThatMatchFilter(nodes, x) {
2666 } else if (tagSearch != null) {
2667 // Tag filter
2668 for (var d in nodes) {
2669 - if ((nodes[d].tags == null) && (tagSearch == '')) { r.push(d); }
2670 - else if (nodes[d].tags != null) { for (var j in nodes[d].tags) { if (nodes[d].tags[j].toLowerCase() == tagSearch) { r.push(d); break; } } }
2669 + if ((nodes[d].tags == null) && (tagSearch == '')) { r.push(nodes[d]); }
2670 + else if (nodes[d].tags != null) { for (var j in nodes[d].tags) { if (nodes[d].tags[j].toLowerCase() == tagSearch) { r.push(nodes[d]); break; } } }
2671 }
2672 } else if (agentTagSearch != null) {
2673 // Agent Tag filter