Skip to content

Commit

Permalink
Fix: 500/404 Error from a GitHub Source Content (#879)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndianabasi authored Apr 10, 2023
1 parent 3e79992 commit 2eb013d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/docs/DocsPrevNext.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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] : ''
Expand All @@ -20,7 +20,7 @@ const directory = (link: any) => {
<template>
<div v-if="prev || next" class="docs-prev-next">
<NuxtLink
v-if="prev"
v-if="prev && prev._path"
:to="prev._path"
class="prev"
>
Expand All @@ -36,7 +36,7 @@ const directory = (link: any) => {
<span v-else />

<NuxtLink
v-if="next"
v-if="next && next._path"
:to="next._path"
class="next"
>
Expand Down

0 comments on commit 2eb013d

Please sign in to comment.