Skip to content

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

chore: use unknown project (#9381)

boojack73910fd5fbd3
diff --git a/frontend/src/components/ProvideSQLEditorContext.vue b/frontend/src/components/ProvideSQLEditorContext.vue
index 9ea206309e..2aa1244d92 100644
--- a/frontend/src/components/ProvideSQLEditorContext.vue
+++ b/frontend/src/components/ProvideSQLEditorContext.vue
@@ -22,7 +22,13 @@ import { useSQLEditorTreeStore } from "@/store/modules/sqlEditorTree";
import { projectNamePrefix } from "@/store/modules/v1/common";
import { usePolicyV1Store } from "@/store/modules/v1/policy";
import { useSettingV1Store } from "@/store/modules/v1/setting";
-import { Connection, CoreTabInfo, TabMode, UNKNOWN_USER_NAME } from "@/types";
+import {
+ Connection,
+ CoreTabInfo,
+ TabMode,
+ UNKNOWN_USER_NAME,
+ unknownProject,
+} from "@/types";
import { UNKNOWN_ID } from "@/types";
import { State } from "@/types/proto/v1/common";
import {
@@ -99,7 +105,7 @@ const initializeTree = async () => {
);
treeStore.selectedProject = project;
} catch (error) {
- // do nothing.
+ treeStore.selectedProject = unknownProject();
}
}
treeStore.buildTree();