mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-15 09:46:16 +01:00
Do not render last commit date when it's missing
This commit is contained in:
@@ -62,9 +62,11 @@ const BranchRow: FC<Props> = ({ baseUrl, branch, onDelete }) => {
|
||||
{branch.name}
|
||||
<DefaultBranchTag defaultBranch={branch.defaultBranch} />
|
||||
</ReactLink>
|
||||
<Created className="has-text-grey is-ellipsis-overflow">
|
||||
{t("branches.table.lastCommit")} <DateFromNow date={branch.lastCommitDate} />
|
||||
</Created>
|
||||
{branch.lastCommitDate && (
|
||||
<Created className="has-text-grey is-ellipsis-overflow">
|
||||
{t("branches.table.lastCommit")} <DateFromNow date={branch.lastCommitDate} />
|
||||
</Created>
|
||||
)}
|
||||
</td>
|
||||
<td className="is-darker">{deleteButton}</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user