We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38d3f2b commit 2f77ec7Copy full SHA for 2f77ec7
apps/gateway/src/common/documents/getData.ts
@@ -245,7 +245,7 @@ export async function publishDocumentRunRequestedEvent({
245
parameters,
246
projectId: project.id,
247
commitUuid: commit.uuid,
248
- isLiveCommit: headCommit.uuid === commit.uuid,
+ isLiveCommit: headCommit?.uuid === commit.uuid,
249
documentPath: document.path,
250
workspaceId: workspace.id,
251
userEmail: user.email,
apps/web/src/actions/sdk/runDocumentAction.ts
@@ -42,7 +42,7 @@ export async function runDocumentAction({
42
data: {
43
projectId,
44
commitUuid,
45
- isLiveCommit: headCommit.uuid === commitUuid,
+ isLiveCommit: headCommit?.uuid === commitUuid,
46
documentPath,
47
48
0 commit comments