fix(sidebar): preserve connection node during metadata refresh

This commit is contained in:
t8y2 committed 2026-07-16 23:07:35 +08:00
1 parent 6660957153
commit 7b356ddb22
2 files changed
+30 -1

No files matched your search

+3 -1
View File
@@ -1811,7 +1811,9 @@ export const useConnectionStore = defineStore("connection", () => {
const nextConnections = [...connections.value];
nextConnections[index] = { ...nextConnections[index], database_info: normalized };
connections.value = nextConnections;
rebuildTreeNodes();
// Database info is reactive connection metadata, not tree structure. Keep
// navigator node identities stable so an in-flight first expansion can
// still apply its loaded children after this background refresh completes.
}
async function refreshConnectedDatabaseInfo(connectionId: string, config: ConnectionConfig): Promise<void> {