From 07cf29037031ba90040c4f0cb57ee04796116fd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Pfeuffer?= Date: Tue, 24 Nov 2020 10:33:57 +0100 Subject: [PATCH] Do not render last commit date when it's missing --- .../ui-webapp/src/repos/branches/components/BranchRow.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scm-ui/ui-webapp/src/repos/branches/components/BranchRow.tsx b/scm-ui/ui-webapp/src/repos/branches/components/BranchRow.tsx index b6dcd2e51e..b13e0d9893 100644 --- a/scm-ui/ui-webapp/src/repos/branches/components/BranchRow.tsx +++ b/scm-ui/ui-webapp/src/repos/branches/components/BranchRow.tsx @@ -62,9 +62,11 @@ const BranchRow: FC = ({ baseUrl, branch, onDelete }) => { {branch.name} - - {t("branches.table.lastCommit")} - + {branch.lastCommitDate && ( + + {t("branches.table.lastCommit")} + + )} {deleteButton}