fix calculation for finalPage in repo-search component (#16382)

Co-authored-by: Jan Naahs <jan.naahs@naahstea.de>
tokarchuk/v1.17
6543 3 years ago committed by GitHub
parent b82293270c
commit 57ee06fb94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      web_src/js/index.js

@ -3389,7 +3389,7 @@ function initVueComponents() {
this.reposTotalCount = count; this.reposTotalCount = count;
} }
Vue.set(this.counts, `${this.reposFilter}:${this.archivedFilter}:${this.privateFilter}`, 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(); this.updateHistory();
} }
}).always(() => { }).always(() => {

Loading…
Cancel
Save