diff --git a/docs/app.vue b/docs/app.vue index df08622a62..7ec9754a84 100644 --- a/docs/app.vue +++ b/docs/app.vue @@ -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', @@ -110,7 +110,7 @@ const links = computed(() => { icon: 'i-heroicons-rocket-launch', to: 'https://github.com/nuxt/ui/releases', target: '_blank' - }] + }].filter(Boolean) }) // Watch