Dont show empty search results if no projects on home page (#21605)

This commit is contained in:
Joshen Lim authored and GitHub committed 2024-02-27 18:13:32 +08:00
1 parent f4f5a8b7e9
commit 0bafd1dff7
1 file changed
+1
@@ -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 (