Skip to content

Commit 56281a4

Browse files
committed
Greater than zero error has been fixed.
1 parent d615a6e commit 56281a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/DocsNav.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ const DocsNav = ({ contentNotTranslated }: DocsNavProps) => {
137137
}
138138

139139
// Extract previous and next doc based on current index +/- 1
140-
const previousDoc = currentIndex - 1 > 0 ? docsArray[currentIndex - 1] : null
140+
const previousDoc = currentIndex - 1 >= 0 ? docsArray[currentIndex - 1] : null
141141
const nextDoc =
142142
currentIndex + 1 < docsArray.length ? docsArray[currentIndex + 1] : null
143143

0 commit comments

Comments
 (0)