Skip to content

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

Fix breadcrumb title on instance/new

Tianzhou Chen4ac96cc60eca
diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts
index 89ff6c40f0..4641291c95 100644
--- a/frontend/src/router/index.ts
+++ b/frontend/src/router/index.ts
@@ -227,9 +227,12 @@ const routes: Array<RouteRecordRaw> = [
name: "workspace.instance.detail",
meta: {
title: (route: RouteLocationNormalized) => {
- return store.getters["instance/instanceById"](
- idFromSlug(route.params.instanceSlug as string)
- ).attributes.name;
+ const slug = route.params.instanceSlug as string;
+ if (slug.toUpperCase() == "NEW") {
+ return "New";
+ }
+ return store.getters["instance/instanceById"](idFromSlug(slug))
+ .attributes.name;
},
},
components: {