diff options
author | 6543 <6543@obermui.de> | 2021-07-13 16:05:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-13 16:05:27 +0200 |
commit | 57ee06fb949dcb2aeae9a17843118d76003d3b20 (patch) | |
tree | cb410bbea16ae305d511d16759172957756f8e91 | |
parent | b82293270c7d2d36d79cb9c5731d07c3f5b33f6b (diff) | |
download | gitea-57ee06fb949dcb2aeae9a17843118d76003d3b20.tar.gz gitea-57ee06fb949dcb2aeae9a17843118d76003d3b20.zip |
fix calculation for finalPage in repo-search component (#16382)
Co-authored-by: Jan Naahs <jan.naahs@naahstea.de>
-rw-r--r-- | web_src/js/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js index 7a76b89f9b..6156429deb 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -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(() => { |