Skip to content

Commit 2f77ec7

Browse files
committed
quickfix: more invalid headcommit lookups in code
1 parent 38d3f2b commit 2f77ec7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/gateway/src/common/documents/getData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ export async function publishDocumentRunRequestedEvent({
245245
parameters,
246246
projectId: project.id,
247247
commitUuid: commit.uuid,
248-
isLiveCommit: headCommit.uuid === commit.uuid,
248+
isLiveCommit: headCommit?.uuid === commit.uuid,
249249
documentPath: document.path,
250250
workspaceId: workspace.id,
251251
userEmail: user.email,

apps/web/src/actions/sdk/runDocumentAction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export async function runDocumentAction({
4242
data: {
4343
projectId,
4444
commitUuid,
45-
isLiveCommit: headCommit.uuid === commitUuid,
45+
isLiveCommit: headCommit?.uuid === commitUuid,
4646
documentPath,
4747
parameters,
4848
workspaceId: workspace.id,

0 commit comments

Comments
 (0)