Skip to content

Commit

Permalink
fix(catalogue): fix 4366 (#4377)
Browse files Browse the repository at this point in the history
'overview' check expected resourceType not set in variale route
Closes #4366
  • Loading branch information
connoratrug authored Oct 17, 2024
1 parent 5ed8f19 commit a820887
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/nuxt3-ssr/components/header/Catalogue.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ const catalogueRouteParam = route.params.catalogue as string;
const menu: { label: string; link: string }[] = [];
if (route.params.resourceType) {
// the variable route does not set the resourceType param, therefore check the route name
if (
route.params.resourceType ||
route.name === "schema-ssr-catalogue-catalogue-variables"
) {
menu.push({
label: "overview",
link: `/${route.params.schema}/ssr-catalogue/${catalogueRouteParam}`,
Expand Down

0 comments on commit a820887

Please sign in to comment.