fix(mongodb): guard aggregate execution paths

This commit is contained in:
徐文彬 committed 2026-05-28 21:29:08 +08:00
1 parent c56bcb8e2d
commit 5ea146e08e
19 files changed
+166 -26

No files matched your search

+1 -1
View File
@@ -622,7 +622,7 @@ function ensureQueryTab(): string {
const tab = activeTab.value;
if (tab && tab.mode === "query") return tab.id;
const connId = connectionStore.activeConnectionId || connectionStore.connections[0]?.id || "";
const db = tab?.database || connectionStore.getConfig(connId)?.database || "";
const db = tab?.connectionId === connId ? tab.database : connectionStore.getConfig(connId)?.database || "";
return queryStore.createTab(connId, db, undefined, "query");
}