Project filter status, active will only show active projects, not all (#29223)

This commit is contained in:
Joshen Lim authored and GitHub committed 2024-09-11 20:43:05 +08:00
1 parent 9e1d6f909d
commit 548e32cb3c
1 file changed
+1 -1
@@ -187,7 +187,7 @@ const OrganizationProjects = ({
// [Joshen] Just a UI thing, but we take all projects other than paused as "active"
const filteredProjectsByStatus =
filterStatus !== undefined
? filterStatus.includes(PROJECT_STATUS.ACTIVE_HEALTHY)
? filterStatus.length === 2
? filteredProjects
: filteredProjects.filter((project) => filterStatus.includes(project.status))
: filteredProjects