From 57ee06fb949dcb2aeae9a17843118d76003d3b20 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Tue, 13 Jul 2021 16:05:27 +0200 Subject: [PATCH] fix calculation for finalPage in repo-search component (#16382) Co-authored-by: Jan Naahs --- web_src/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/js/index.js b/web_src/js/index.js index 7a76b89f9..6156429de 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(() => {