Skip to content

Commit

Permalink
docs: remove header links when pro nav is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Nov 3, 2023
1 parent 5dca710 commit b06b218
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const links = computed(() => {
label: 'Roadmap',
icon: 'i-heroicons-academic-cap',
to: '/roadmap'
}, {
}, !!navigation.value.find(item => item._path === '/pro') && {
label: 'Pro',
icon: 'i-heroicons-square-3-stack-3d',
to: '/pro',
Expand Down Expand Up @@ -110,7 +110,7 @@ const links = computed(() => {
icon: 'i-heroicons-rocket-launch',
to: 'https://github.com/nuxt/ui/releases',
target: '_blank'
}]
}].filter(Boolean)
})

// Watch
Expand Down

0 comments on commit b06b218

Please sign in to comment.