Skip to content

Commit 4f3557c

Browse files
committed
Fix blog post navigation direction
1 parent d145d58 commit 4f3557c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/wiki/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,8 +662,8 @@
662662
return;
663663
}
664664

665-
const previousArticle = index > 0 ? articles[index - 1] : null;
666-
const nextArticle = index < articles.length - 1 ? articles[index + 1] : null;
665+
const previousArticle = index < articles.length - 1 ? articles[index + 1] : null;
666+
const nextArticle = index > 0 ? articles[index - 1] : null;
667667

668668
if (previousArticle) {
669669
previousButton.disabled = false;

0 commit comments

Comments
 (0)