Skip to content

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

fix: don't create new tab if not needed (#2693)

Liu Ji617c4ab77a41
diff --git a/frontend/src/components/ProvideSQLEditorContext.vue b/frontend/src/components/ProvideSQLEditorContext.vue
index b7735f519f..86522da99d 100644
--- a/frontend/src/components/ProvideSQLEditorContext.vue
+++ b/frontend/src/components/ProvideSQLEditorContext.vue
@@ -173,8 +173,9 @@ const setConnectionFromQuery = async () => {
return;
}
- tabStore.selectOrAddTempTab();
// Keep disconnected otherwise
+ // We don't need to `selectOrAddTempTab` here since we already have the
+ // default tab.
};
onMounted(async () => {