Skip to content

Commit

Permalink
fix(GoalPreview): not show dot in header if no teams
Browse files Browse the repository at this point in the history
  • Loading branch information
awinogradov committed Feb 7, 2023
1 parent 1cb0bf4 commit f00a4be
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/components/GoalPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,13 @@ const GoalPreview: React.FC<GoalPreviewProps> = ({ goal: partialGoal, visible, o
<IssueParent kind="team" as="span" mode="compact" parent={team} size="m" />
))}

{nullable(goal.project?.teams, (teams) => (
<>
<IssueParent kind="team" as="span" mode="compact" parent={teams} size="m" />
<Dot />
</>
))}
{Boolean(goal.project?.teams?.length) &&
nullable(goal.project?.teams, (teams) => (
<>
<IssueParent kind="team" as="span" mode="compact" parent={teams} size="m" />
<Dot />
</>
))}

{nullable(goal.project, (project) => (
<IssueParent kind="project" as="span" mode="compact" parent={project} size="m" />
Expand Down

0 comments on commit f00a4be

Please sign in to comment.