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 { workspaceProjectIds, filteredProjectIds, getProjectById } = useProject();
|
||||||
const { searchQuery } = useProjectFilter();
|
const { searchQuery } = useProjectFilter();
|
||||||
|
|
||||||
if (!filteredProjectIds) return <ProjectsLoader />;
|
|
||||||
|
|
||||||
if (workspaceProjectIds?.length === 0)
|
if (workspaceProjectIds?.length === 0)
|
||||||
return (
|
return (
|
||||||
<EmptyState
|
<EmptyState
|
||||||
@ -31,6 +29,9 @@ export const ProjectCardList = observer(() => {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (!filteredProjectIds) return <ProjectsLoader />;
|
||||||
|
|
||||||
if (filteredProjectIds.length === 0)
|
if (filteredProjectIds.length === 0)
|
||||||
return (
|
return (
|
||||||
<div className="h-full w-full grid place-items-center">
|
<div className="h-full w-full grid place-items-center">
|
||||||
|
Loading…
Reference in New Issue
Block a user