mirror of
https://github.com/t8y2/dbx.git
synced 2026-11-01 08:26:35 +00:00
fix: exclude disconnected connections from sidebar search results
This commit is contained in:
@@ -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