From b06b218d6ac612d14db048f2991744870a20f416 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Fri, 3 Nov 2023 14:24:00 +0100 Subject: [PATCH] docs: remove header links when pro nav is missing --- docs/app.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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