8000 Fix: 500/404 Error from a GitHub Source Content (#879) · nuxt-themes/docus@2eb013d · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 2eb013d

Browse files
authored
Fix: 500/404 Error from a GitHub Source Content (#879)
1 parent 3e79992 commit 2eb013d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/docs/DocsPrevNext.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const directory = (link: any) => {
88
const nav = navDirFromPath(link._path, navigation.value || [])
99
1010
if (nav && nav[0]) {
11-
return nav[0]._path
11+
return nav[0]?._path ?? ''
1212
} else {
1313
const dirs = link.split('/')
1414
const directory = dirs.length > 1 ? dirs[dirs.length - 2] : ''
@@ -20,7 +20,7 @@ const directory = (link: any) => {
2020
<template>
2121
<div v-if="prev || next" class="docs-prev-next">
2222
<NuxtLink
23-
v-if="prev"
23+
v-if="prev && prev._path"
2424
:to="prev._path"
2525
class="prev"
2626
>
@@ -36,7 +36,7 @@ const directory = (link: any) => {
3636
<span v-else />
3737

3838
<NuxtLink
39-
v-if="next"
39+
v-if="next && next._path"
4040
:to="next._path"
4141
class="next"
4242
>

0 commit comments

Comments
 (0)
0