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 d615a6e commit 56281a4Copy full SHA for 56281a4
src/components/DocsNav.tsx
@@ -137,7 +137,7 @@ const DocsNav = ({ contentNotTranslated }: DocsNavProps) => {
137
}
138
139
// Extract previous and next doc based on current index +/- 1
140
- const previousDoc = currentIndex - 1 > 0 ? docsArray[currentIndex - 1] : null
+ const previousDoc = currentIndex - 1 >= 0 ? docsArray[currentIndex - 1] : null
141
const nextDoc =
142
currentIndex + 1 < docsArray.length ? docsArray[currentIndex + 1] : null
143
0 commit comments