From 96dcd1127e3555736e62a6594e685e5f5afe6606 Mon Sep 17 00:00:00 2001 From: lexmin0412 Date: Thu, 18 Jun 2026 15:46:52 +0800 Subject: [PATCH] fix(connection): reload database children when updating expanded connection --- apps/desktop/src/stores/connectionStore.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/desktop/src/stores/connectionStore.ts b/apps/desktop/src/stores/connectionStore.ts index 6133dd9a7..b91be2a71 100644 --- a/apps/desktop/src/stores/connectionStore.ts +++ b/apps/desktop/src/stores/connectionStore.ts @@ -719,6 +719,10 @@ export const useConnectionStore = defineStore("connection", () => { connectedIds.value.delete(config.id); invalidateCompletionCache(config.id); clearLoadedChildrenCache(config.id); + const node = findNode(treeNodes.value, config.id); + if (node?.isExpanded) { + await reloadConnectionDatabaseChildren(config.id); + } } async function setDefaultDatabase(connectionId: string, database: string) {