mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00:00 
			
		
		
		
	fix calculation for finalPage in repo-search component (#16382)
Co-authored-by: Jan Naahs <jan.naahs@naahstea.de>
This commit is contained in:
		@@ -3389,7 +3389,7 @@ function initVueComponents() {
 | 
				
			|||||||
              this.reposTotalCount = count;
 | 
					              this.reposTotalCount = count;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            Vue.set(this.counts, `${this.reposFilter}:${this.archivedFilter}:${this.privateFilter}`, 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();
 | 
					            this.updateHistory();
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        }).always(() => {
 | 
					        }).always(() => {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user