fix(sidebar): preserve connection node during metadata refresh
This commit is contained in:
1 parent
6660957153
commit
7b356ddb22
2 files changed
+30
-1
No files matched your search
@@ -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> {
|
||||
|
||||
Reference in new issue
Block a user