From 0bafd1dff79685e8e33ff38d1828ceb966731f6e Mon Sep 17 00:00:00 2001 From: Joshen Lim Date: Tue, 27 Feb 2024 18:13:32 +0800 Subject: [PATCH] Dont show empty search results if no projects on home page (#21605) --- .../components/interfaces/Home/ProjectList/ProjectList.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/studio/components/interfaces/Home/ProjectList/ProjectList.tsx b/apps/studio/components/interfaces/Home/ProjectList/ProjectList.tsx index e8273722604..12e6fd61219 100644 --- a/apps/studio/components/interfaces/Home/ProjectList/ProjectList.tsx +++ b/apps/studio/components/interfaces/Home/ProjectList/ProjectList.tsx @@ -43,6 +43,7 @@ const ProjectList = ({ search, rewriteHref }: ProjectListProps) => { const projectsByOrg = groupBy(allProjects, 'organization_id') const isLoadingPermissions = IS_PLATFORM ? _isLoadingPermissions : false const noResults = + search.length > 0 && allProjects !== undefined && allProjects.filter((project) => { return (