Skip to content

Commit deb5099

Browse files
6543Jan Naahs
authored andcommittedAug 10, 2021
fix calculation for finalPage in repo-search component (go-gitea#16382)
Co-authored-by: Jan Naahs <[email protected]>
1 parent eb51fd1 commit deb5099

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎web_src/js/index.js

+1-1
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)
Please sign in to comment.