Skip to content

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

fix: stuck spinning when applying changelist (#8916)

Liu Jiba088ee93a7a
diff --git a/frontend/src/components/Changelist/ChangelistDetail/context.ts b/frontend/src/components/Changelist/ChangelistDetail/context.ts
index c2361acda8..c504a9cab1 100644
--- a/frontend/src/components/Changelist/ChangelistDetail/context.ts
+++ b/frontend/src/components/Changelist/ChangelistDetail/context.ts
@@ -6,7 +6,7 @@ import {
useCurrentUserV1,
useProjectV1Store,
} from "@/store";
-import { ComposedProject, unknownChangelist } from "@/types";
+import { ComposedProject, unknownChangelist, unknownProject } from "@/types";
import {
Changelist,
Changelist_Change as Change,
@@ -50,8 +50,12 @@ export const provideChangelistDetailContext = () => {
const projectV1Store = useProjectV1Store();
const project = computed(() => {
+ const projectSlug = route.params.projectSlug as string;
+ if (!projectSlug) {
+ return unknownProject();
+ }
const proj = projectV1Store.getProjectByUID(
- String(idFromSlug(route.params.projectSlug as string))
+ String(idFromSlug(projectSlug))
);
return proj;
});