Skip to content

Commit 146b7b2

Browse files
Jan Naahs6543
Jan Naahs
authored andcommitted
fix calculation for finalPage in repo-search component
1 parent 91162bb commit 146b7b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3389,7 +3389,7 @@ function initVueComponents() {
33893389
this.reposTotalCount = count;
33903390
}
33913391
Vue.set(this.counts, `${this.reposFilter}:${this.archivedFilter}:${this.privateFilter}`, count);
3392-
this.finalPage = Math.floor(count / this.searchLimit) + 1;
3392+
this.finalPage = Math.ceil(count / this.searchLimit);
33933393
this.updateHistory();
33943394
}
33953395
}).always(() => {

0 commit comments

Comments
 (0)