forked from github/plane
fix: project inifinite loader when we go the workspace projects for the first time (#3999)
This commit is contained in:
parent
e02fa4d9e7
commit
bca3e13242
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user