Only do counting when count_only=true for repo dashboard (#29884)

Ref: #29878
This commit is contained in:
wxiaoguang authored and GitHub committed 2024-03-18 11:05:17 +00:00
1 parent 16e360099d
commit b251e608c0
2 files changed
+16 -11

No files matched your search

+1 -1
View File
@@ -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);