Skip to content

Commit 38d3f2b

Browse files
committed
quickfix: head commit can be nil in run route
1 parent e784668 commit 38d3f2b

File tree

1 file changed

+1
-1
lines changed
  • apps/web/src/app/api/documents/[documentUuid]/run

1 file changed

+1
-1
lines changed

apps/web/src/app/api/documents/[documentUuid]/run/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export const POST = errorHandler(
7575
data: {
7676
projectId,
7777
commitUuid,
78-
isLiveCommit: headCommit.uuid === commitUuid,
78+
isLiveCommit: headCommit?.uuid === commitUuid,
7979
documentPath: path,
8080
parameters: _parameters,
8181
workspaceId: workspace.id,

0 commit comments

Comments
 (0)