From 5dca710d16fbde9be1fe08ab429037af8c5a7b09 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Fri, 3 Nov 2023 12:34:30 +0000 Subject: [PATCH] docs: don't add pro path if it doesn't exist --- docs/app.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/app.vue b/docs/app.vue index 759f07df38..df08622a62 100644 --- a/docs/app.vue +++ b/docs/app.vue @@ -47,7 +47,7 @@ const navigation = computed(() => { const pro = nav.value.find(item => item._path === '/pro') return [ - pro, + ...(pro ? [pro] : []), ...dev ] }