Only do counting when count_only=true for repo dashboard (#29884)
Ref: #29878 (cherry picked from commit b251e608c01392c947f84be387f956541bfea25c)
This commit is contained in:
parent
0d3ddec26c
commit
fbf0b3d661
2 changed files with 16 additions and 11 deletions
|
@ -235,7 +235,7 @@ const sfc = {
|
|||
if (!this.reposTotalCount) {
|
||||
const totalCountSearchURL = `${this.subUrl}/repo/search?count_only=1&uid=${this.uid}&team_id=${this.teamId}&q=&page=1&mode=`;
|
||||
response = await GET(totalCountSearchURL);
|
||||
this.reposTotalCount = response.headers.get('X-Total-Count');
|
||||
this.reposTotalCount = response.headers.get('X-Total-Count') ?? '?';
|
||||
}
|
||||
|
||||
response = await GET(searchedURL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue