Skip to content

Commit 18adf5c

Browse files
committed
Index processing consistency resolved
1 parent 56281a4 commit 18adf5c

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
@@ -129,7 +129,7 @@ const DocsNav = ({ contentNotTranslated }: DocsNavProps) => {
129129
let currentIndex = 0
130130
for (let i = 0; i < docsArray.length; i++) {
131131
if (
132-
asPath.indexOf(docsArray[i].to) > -1 &&
132+
asPath.indexOf(docsArray[i].to) >= 0 &&
133133
asPath.length === docsArray[i].to.length
134134
) {
135135
currentIndex = i

0 commit comments

Comments
 (0)