From f28bef9146fe6c6022aa298d529797716375b85a Mon Sep 17 00:00:00 2001 From: Jakub Maruszczak Date: Thu, 20 Feb 2025 14:23:58 +0100 Subject: [PATCH] fix meshctrl tag filter search --- meshctrl.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meshctrl.js b/meshctrl.js index e17e3552..df3e122d 100644 --- a/meshctrl.js +++ b/meshctrl.js @@ -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