From f03779f7cc96a37b32b1fe96d7386e974e814c9d Mon Sep 17 00:00:00 2001 From: Jan Naahs Date: Tue, 6 Jul 2021 17:44:49 +0200 Subject: [PATCH] fix calculation for finalPage in repo-search component --- 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 7a76b89f9b584..6156429deb6c6 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(() => {