Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: change connected database (#16943)

ecmadao205ddb7b6b42
diff --git a/frontend/src/views/sql-editor/ConnectionPanel/ConnectionPane/ConnectionPane.vue b/frontend/src/views/sql-editor/ConnectionPanel/ConnectionPane/ConnectionPane.vue
index 777710ba1e..f8b0df64fd 100644
--- a/frontend/src/views/sql-editor/ConnectionPanel/ConnectionPane/ConnectionPane.vue
+++ b/frontend/src/views/sql-editor/ConnectionPanel/ConnectionPane/ConnectionPane.vue
@@ -457,6 +457,11 @@ const connect = (node: SQLEditorTreeNode) => {
},
context: editorContext,
});
+ if (tabStore.currentTab?.batchQueryContext?.databases.length === 1) {
+ tabStore.updateBatchQueryContext({
+ databases: [],
+ });
+ }
showConnectionPanel.value = false;
};