From df8454dea14f508e8d70107ad8f4759825494252 Mon Sep 17 00:00:00 2001 From: Phillip Hartin Date: Thu, 29 Feb 2024 12:53:24 +1100 Subject: [PATCH] Handle cases where route slug is not present --- nuxt-module/docs/components/content/PageTitle.vue | 2 +- nuxt-module/docs/layouts/default.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nuxt-module/docs/components/content/PageTitle.vue b/nuxt-module/docs/components/content/PageTitle.vue index 1e61f609..df93eafe 100644 --- a/nuxt-module/docs/components/content/PageTitle.vue +++ b/nuxt-module/docs/components/content/PageTitle.vue @@ -4,7 +4,7 @@
Docs
/
-
{{ route.params.slug.at(-1) }}
+
{{ route.params.slug?.at(-1) }}
diff --git a/nuxt-module/docs/layouts/default.vue b/nuxt-module/docs/layouts/default.vue index b368ab4c..a9fe3775 100644 --- a/nuxt-module/docs/layouts/default.vue +++ b/nuxt-module/docs/layouts/default.vue @@ -20,8 +20,8 @@ -
- +
+