fix: project inifinite loader when we go the workspace projects for the first time (#3999)
This commit is contained in:
parent
e02fa4d9e7
commit
bca3e13242
1 changed files with 3 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue