From 548e32cb3cbf1cee2ec1fcf7ff5d954c5f1e3ed2 Mon Sep 17 00:00:00 2001 From: Joshen Lim Date: Wed, 11 Sep 2024 20:43:05 +0800 Subject: [PATCH] Project filter status, active will only show active projects, not all (#29223) --- .../components/interfaces/Home/ProjectList/ProjectList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/studio/components/interfaces/Home/ProjectList/ProjectList.tsx b/apps/studio/components/interfaces/Home/ProjectList/ProjectList.tsx index b3f598d9b0a..a04c9c95c41 100644 --- a/apps/studio/components/interfaces/Home/ProjectList/ProjectList.tsx +++ b/apps/studio/components/interfaces/Home/ProjectList/ProjectList.tsx @@ -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