mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
fix meshctrl tag filter search
This commit is contained in:
parent
f2681de87d
commit
f28bef9146
1 changed files with 2 additions and 2 deletions
|
@ -2665,8 +2665,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue