From 2eb013d5074452a4354918ca6f83415ddcf325ff Mon Sep 17 00:00:00 2001 From: Ndianabasi Udonkang Date: Mon, 10 Apr 2023 21:45:58 +0100 Subject: [PATCH] Fix: 500/404 Error from a GitHub Source Content (#879) --- components/docs/DocsPrevNext.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/docs/DocsPrevNext.vue b/components/docs/DocsPrevNext.vue index 0d470ee23..7f68dd030 100644 --- a/components/docs/DocsPrevNext.vue +++ b/components/docs/DocsPrevNext.vue @@ -8,7 +8,7 @@ const directory = (link: any) => { const nav = navDirFromPath(link._path, navigation.value || []) if (nav && nav[0]) { - return nav[0]._path + return nav[0]?._path ?? '' } else { const dirs = link.split('/') const directory = dirs.length > 1 ? dirs[dirs.length - 2] : '' @@ -20,7 +20,7 @@ const directory = (link: any) => {