Skip to content

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

fix: convert user id and remove `OnboardingGuide` (#4859)

boojack4e68426846ad
diff --git a/frontend/src/App.vue b/frontend/src/App.vue
index 6b3070f97d..ec2b16878f 100644
--- a/frontend/src/App.vue
+++ b/frontend/src/App.vue
@@ -23,11 +23,6 @@
</BBModalStack>
</NDialogProvider>
</NConfigProvider>
-
- <!-- teleport onboarding guide to document.body -->
- <teleport to="body">
- <OnboardingGuide />
- </teleport>
</template>
<script lang="ts" setup>
diff --git a/frontend/src/store/modules/v1/common.ts b/frontend/src/store/modules/v1/common.ts
index d8d2f2011b..4a6585baad 100644
--- a/frontend/src/store/modules/v1/common.ts
+++ b/frontend/src/store/modules/v1/common.ts
@@ -1,3 +1,5 @@
+import { UNKNOWN_ID } from "@/types";
+
export const userNamePrefix = "users/";
export const environmentNamePrefix = "environments/";
@@ -25,12 +27,12 @@ export const getNameParentTokens = (
export const getUserId = (name: string): number => {
const tokens = getNameParentTokens(name, [userNamePrefix]);
- const userId = Number(tokens[0]);
+ const userId = Number(tokens[0] || UNKNOWN_ID);
return userId;
};
export const getEnvironmentId = (name: string): number => {
const tokens = getNameParentTokens(name, [environmentNamePrefix]);
- const environmentId = Number(tokens[0]);
+ const environmentId = Number(tokens[0] || UNKNOWN_ID);
return environmentId;
};