mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
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