Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix calculation for finalPage in repo-search component
  • Loading branch information
Jan Naahs authored and 6543 committed Jul 9, 2021
commit 146b7b235586a8f9dd8b512e618daff6dc687bcf
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