diff --git a/web_src/js/components/DashboardRepoList.vue b/web_src/js/components/DashboardRepoList.vue index 0e85eb2f51..240d4a1034 100644 --- a/web_src/js/components/DashboardRepoList.vue +++ b/web_src/js/components/DashboardRepoList.vue @@ -394,7 +394,7 @@ export default defineComponent({ return; } - if (searchedURL.startsWith(this.searchURL)) { + if (searchedURL.startsWith(searchedURL)) { this.repos = json.data.repos.map((webSearchRepo: any) => { return { ...webSearchRepo.repository, @@ -403,8 +403,12 @@ export default defineComponent({ locale_latest_commit_status_state: webSearchRepo.locale_latest_commit_status, }; }); + let realRepos: any[] = this.repos; + if(window.location.pathname !== "/") { + realRepos = this.repos.filter((a: any) => !a.group_id) + } this.groups.set(0, { - repos: this.repos.filter((a: any) => !a.group_id), + repos: realRepos, subgroups: json.data.subgroups.map((g: any) => { return g.group.id; }),