summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2021-07-13 16:05:27 +0200
committerGitHub <noreply@github.com>2021-07-13 16:05:27 +0200
commit57ee06fb949dcb2aeae9a17843118d76003d3b20 (patch)
treecb410bbea16ae305d511d16759172957756f8e91
parentb82293270c7d2d36d79cb9c5731d07c3f5b33f6b (diff)
downloadgitea-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.js2
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(() => {