Skip to content

Commit 18a2771

Browse files
authored
Merge pull request #156 from DenisValeev/codex/fix-navigation-order-for-blog-posts
Fix Project Blog navigation direction
2 parents ef3aa3a + 4f3557c commit 18a2771

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)