Skip to content

Commit

Permalink
fix calculation for finalPage in repo-search component (#16382)
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Naahs <jan.naahs@naahstea.de>
  • Loading branch information
6543 and Jan Naahs authored Jul 13, 2021
1 parent b822932 commit 57ee06f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web_src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3389,7 +3389,7 @@ function initVueComponents() {
this.reposTotalCount = count;
}
Vue.set(this.counts, `${this.reposFilter}:${this.archivedFilter}:${this.privateFilter}`, count);
this.finalPage = Math.floor(count / this.searchLimit) + 1;
this.finalPage = Math.ceil(count / this.searchLimit);
this.updateHistory();
}
}).always(() => {
Expand Down

0 comments on commit 57ee06f

Please sign in to comment.