Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix calculation for finalPage in repo-search component #16382

Merged
merged 5 commits into from
Jul 13, 2021
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
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
@@ -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(() => {