Skip to content

Commit

Permalink
refactor: move condition on prev line
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorGoryany committed Aug 21, 2024
1 parent d6ec9c6 commit cbce660
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/ProjectListItemConnected.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,10 @@ export const ProjectListItemConnected: FC<ProjectListItemConnectedProps> = ({
>
<TreeViewElement>
{nullable(
!projectDeepInfo?.goals.length && (!childrenProjects.length || view === 'kanban'),
() => !isLoading && <NoGoalsText />,
!projectDeepInfo?.goals.length && (!childrenProjects.length || view === 'kanban') && !isLoading,
() => (
<NoGoalsText />
),
)}
</TreeViewElement>
{nullable(view !== 'kanban', () => subNodes)}
Expand Down

0 comments on commit cbce660

Please sign in to comment.