Skip to content

Commit

Permalink
fix: #9473 (#9476)
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Apr 8, 2021
1 parent 1af34b4 commit 036f935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/topics.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function calculateStartStop(page, postIndex, settings) {
let startSkip = 0;

if (!settings.usePagination) {
if (postIndex !== 0) {
if (postIndex > 1) {
page = 1;
}
startSkip = Math.max(0, postIndex - Math.ceil(settings.postsPerPage / 2));
Expand Down

0 comments on commit 036f935

Please sign in to comment.