Skip to content

Commit 76f816f

Browse files
committed
Update deployment preview
1 parent d24038a commit 76f816f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

web/src/gui/deployments/DeploymentPreview.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export const DeploymentPreview: FC<{
8080
}}
8181
className="hover:text-link flex w-fit items-center gap-2 hover:underline"
8282
>
83-
{githubContext.data.commit.message}
83+
{githubContext.data.commit?.message}
8484
</Link>
8585
<WorkflowStatusIndicator
8686
status={githubContext.data.workflow_status}
@@ -93,7 +93,7 @@ export const DeploymentPreview: FC<{
9393
target="_blank"
9494
>
9595
<FiGitCommit />
96-
{githubContext.data.commit.id.slice(0, 7)}
96+
{githubContext.data.commit?.id.slice(0, 7)}
9797
</Link>
9898
<Link
9999
to={githubContext.workflowUrl}

web/src/gui/deployments/context/github.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export const GithubDeploymentContext: FC<{
108108
<div className="flex h-full flex-col justify-center gap-1">
109109
<div className="flex items-center gap-2">
110110
<div className="font-bold">
111-
{context.data.commit.message}
111+
{context.data.commit?.message}
112112
</div>
113113
{decoratedContext.workflowUrl && (
114114
<Link

0 commit comments

Comments
 (0)