Skip to content

Commit

Permalink
fix(Component): Fix bug component owner is not showing on detail page
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangnt2 authored and heliocastro committed Dec 20, 2024
1 parent c1eb48b commit 433d9af
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@ const SummaryRole = ({ component }: { component: Component }) : ReactNode => {
<tbody hidden={toggle}>
<tr>
<td>{t('Component Owner')}:</td>
<td>{!CommonUtils.isNullEmptyOrUndefinedString(component.componentOwner) && <>{component.componentOwner}</>}</td>
<td>{
!CommonUtils.isNullOrUndefined(component._embedded?.componentOwner)
&&
<a href={`mailto:${component._embedded.componentOwner.email}`}>
{component._embedded.componentOwner.fullName}
</a>}
</td>
</tr>
<tr>
<td>{t('Owner Accounting Unit')}:</td>
Expand Down

0 comments on commit 433d9af

Please sign in to comment.