From 76585b2e2865f7f166272e6e6ece90333bb742db Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Fri, 29 May 2026 15:39:39 +0800 Subject: [PATCH] fix: use recursive findNode in disconnect to handle connections inside groups --- apps/desktop/src/stores/connectionStore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/desktop/src/stores/connectionStore.ts b/apps/desktop/src/stores/connectionStore.ts index 62780469a8..2c01c380d2 100644 --- a/apps/desktop/src/stores/connectionStore.ts +++ b/apps/desktop/src/stores/connectionStore.ts @@ -655,7 +655,7 @@ export const useConnectionStore = defineStore("connection", () => { const shouldRemoveOneTimeConnection = getConfig(connectionId)?.one_time === true; await api.disconnectDb(connectionId); connectedIds.value.delete(connectionId); - const node = treeNodes.value.find((n) => n.connectionId === connectionId); + const node = findNode(treeNodes.value, connectionId); if (node) { node.isExpanded = false; node.children = [];