mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-22 11:02:36 +00:00
fix(connection): reload database children when updating expanded connection
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user