Skip to content

Commit

Permalink
fix(catalogue): menu should hide networks and variables when cohortsO…
Browse files Browse the repository at this point in the history
…nly (#4441)
  • Loading branch information
mswertz authored Nov 12, 2024
1 parent ecf1689 commit 38baa4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/nuxt3-ssr/components/header/Catalogue.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ if (props.collectionCount > 0) {
});
}
if (props.networkCount > 0) {
if (props.networkCount > 0 && !cohortOnly.value) {
menu.push({
label: "Networks",
link: `/${route.params.schema}/ssr-catalogue/${catalogueRouteParam}/networks`,
});
}
if (!cohortOnly.value && props.variableCount > 0)
if (props.variableCount > 0 && !cohortOnly.value)
menu.push({
label: "Variables",
link: `/${route.params.schema}/ssr-catalogue/${catalogueRouteParam}/variables`,
Expand Down

0 comments on commit 38baa4b

Please sign in to comment.