some final cleanup

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2021-12-17 10:13:02 +01:00
parent 7a4bd2ceac
commit 2847cd8234
11 changed files with 18 additions and 25 deletions
@@ -121,9 +121,7 @@ const SourceInfo = ({ build }: { build: CITableBuildInfo }) => {
<Typography variant="button">{source?.branchName}</Typography>
<Typography variant="body1">
{source?.commit?.url !== undefined ? (
<Link to={source?.commit?.url} target="_blank">
{source?.commit.shortHash}
</Link>
<Link to={source?.commit?.url}>{source?.commit.shortHash}</Link>
) : (
source?.commit.shortHash
)}
@@ -169,7 +167,7 @@ const generatedColumns: TableColumn[] = [
field: 'buildName',
highlight: true,
render: (row: Partial<CITableBuildInfo>) => (
<Link to={row?.buildUrl!} target="_blank">
<Link to={row?.buildUrl ?? ''}>
<Box display="flex" alignItems="center">
<LaunchIcon fontSize="small" color="disabled" />
<Box mr={1} />