Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

feat(projects): #1594 filtered the public projects having > 1 repo #1598

Open
wants to merge 5 commits into
base: v0.11.9
Choose a base branch
from
Open
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ export class PrivatePublicProjectComponent implements OnInit, OnDestroy {
if (this.router.url === '/') {
this.projectSubscription = this.projectService
.findPublicProjects()
.subscribe((projects: IProject[]) => this.projects = projects.map((project: IProject) => new ProjectModel(project)));
.subscribe((projects: IProject[]) => this.projects = projects.map((project: IProject) => new ProjectModel(project))
.filter((project: ProjectModel) => project.repositories.length > 1));
eddiejaoude marked this conversation as resolved.
Show resolved Hide resolved
} else {
this.showTitle = true;
this.projectSubscription = this.projectService
Expand Down