fix(connection): clear errors after disconnect

This commit is contained in:
t8y2 committed 2026-06-08 23:52:16 +08:00
1 parent a414183ff0
commit c35929da7c
2 files changed
+86

No files matched your search

@@ -788,6 +788,7 @@ export const useConnectionStore = defineStore("connection", () => {
async function disconnect(connectionId: string) {
const shouldRemoveOneTimeConnection = getConfig(connectionId)?.one_time === true;
await api.disconnectDb(connectionId);
clearConnectionError(connectionId);
const { useQueryStore } = await import("@/stores/queryStore");
const queryStore = useQueryStore();
switch (settingsStore.editorSettings.disconnectTabHandlingMode) {