We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ef3aa3a + 4f3557c commit 18a2771Copy full SHA for 18a2771
1 file changed
apps/wiki/app.js
@@ -662,8 +662,8 @@
662
return;
663
}
664
665
- const previousArticle = index > 0 ? articles[index - 1] : null;
666
- const nextArticle = index < articles.length - 1 ? articles[index + 1] : null;
+ const previousArticle = index < articles.length - 1 ? articles[index + 1] : null;
+ const nextArticle = index > 0 ? articles[index - 1] : null;
667
668
if (previousArticle) {
669
previousButton.disabled = false;
0 commit comments