fix: project inifinite loader when we go the workspace projects for the first time (#3999)

This commit is contained in:
guru_sainath 2024-03-20 18:08:42 +05:30 committed by GitHub
parent e02fa4d9e7
commit bca3e13242
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,8 +19,6 @@ export const ProjectCardList = observer(() => {
const { workspaceProjectIds, filteredProjectIds, getProjectById } = useProject();
const { searchQuery } = useProjectFilter();
if (!filteredProjectIds) return <ProjectsLoader />;
if (workspaceProjectIds?.length === 0)
return (
<EmptyState
@ -31,6 +29,9 @@ export const ProjectCardList = observer(() => {
}}
/>
);
if (!filteredProjectIds) return <ProjectsLoader />;
if (filteredProjectIds.length === 0)
return (
<div className="h-full w-full grid place-items-center">