8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e79992 commit 2eb013dCopy full SHA for 2eb013d
components/docs/DocsPrevNext.vue
@@ -8,7 +8,7 @@ const directory = (link: any) => {
8
const nav = navDirFromPath(link._path, navigation.value || [])
9
10
if (nav && nav[0]) {
11
- return nav[0]._path
+ return nav[0]?._path ?? ''
12
} else {
13
const dirs = link.split('/')
14
const directory = dirs.length > 1 ? dirs[dirs.length - 2] : ''
@@ -20,7 +20,7 @@ const directory = (link: any) => {
20
<template>
21
<div v-if="prev || next" class="docs-prev-next">
22
<NuxtLink
23
- v-if="prev"
+ v-if="prev && prev._path"
24
:to="prev._path"
25
class="prev"
26
>
@@ -36,7 +36,7 @@ const directory = (link: any) => {
36
<span v-else />
37
38
39
- v-if="next"
+ v-if="next && next._path"
40
:to="next._path"
41
class="next"
42
0 commit comments