fix: exclude disconnected connections from sidebar search results
This commit is contained in:
1 parent
94898ed84a
commit
f0be94096c
1 file changed
+4
@@ -123,6 +123,10 @@ const filteredNodes = computed(() => {
|
||||
const q = deferredSearchQuery.value;
|
||||
if (q) {
|
||||
nodes = filterSidebarTree(nodes, q, searchCollapsedIds.value, searchableNodeTypes.value);
|
||||
nodes = nodes.filter((node) => {
|
||||
if (node.type === "connection-group") return true;
|
||||
return node.connectionId ? store.connectedIds.has(node.connectionId) : true;
|
||||
});
|
||||
}
|
||||
|
||||
return nodes;
|
||||
|
||||
Reference in new issue
Block a user