Skip to content

Commit

Permalink
fix meshctrl tag filter search (#6798)
Browse files Browse the repository at this point in the history
  • Loading branch information
kubamaruszczak authored Feb 20, 2025
1 parent 0ab3f01 commit 5ee9aa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions meshctrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -2666,8 +2666,8 @@ function getDevicesThatMatchFilter(nodes, x) {
} else if (tagSearch != null) {
// Tag filter
for (var d in nodes) {
if ((nodes[d].tags == null) && (tagSearch == '')) { r.push(d); }
else if (nodes[d].tags != null) { for (var j in nodes[d].tags) { if (nodes[d].tags[j].toLowerCase() == tagSearch) { r.push(d); break; } } }
if ((nodes[d].tags == null) && (tagSearch == '')) { r.push(nodes[d]); }
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; } } }
}
} else if (agentTagSearch != null) {
// Agent Tag filter
Expand Down

0 comments on commit 5ee9aa2

Please sign in to comment.