Skip to content

Commit

Permalink
Hide tags if none
Browse files Browse the repository at this point in the history
  • Loading branch information
kdelemme committed Sep 20, 2024
1 parent a747ae0 commit bc5b8b1
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,15 @@ export function InvestigationHeader() {
<InvestigationStatusBadge status={investigation.status} />
</EuiFlexItem>

<EuiFlexItem grow={false}>
<EuiFlexGroup responsive={false} wrap gutterSize="s">
{investigation.tags.map((tag) => (
<InvestigationTag key={tag} tag={tag} />
))}
</EuiFlexGroup>
</EuiFlexItem>
{investigation.tags.length > 0 && (
<EuiFlexItem grow={false}>
<EuiFlexGroup responsive={false} wrap gutterSize="s">
{investigation.tags.map((tag) => (
<InvestigationTag key={tag} tag={tag} />
))}
</EuiFlexGroup>
</EuiFlexItem>
)}

<EuiFlexItem grow={false}>
<EuiText size="s">
Expand Down

0 comments on commit bc5b8b1

Please sign in to comment.