diff --git a/skyvern-frontend/src/routes/workflows/utils.ts b/skyvern-frontend/src/routes/workflows/utils.ts index aad059f9..c916a9b4 100644 --- a/skyvern-frontend/src/routes/workflows/utils.ts +++ b/skyvern-frontend/src/routes/workflows/utils.ts @@ -91,12 +91,6 @@ export const getOrderedBlockLabels = (workflow?: WorkflowApiResponse) => { return blockLabels; }; -const getCommentForBlockWithoutCode = (blockLabel: string) => { - return ` - # block '${blockLabel}' code goes here -`; -}; - export const getCode = ( orderedBlockLabels: string[], blockScripts?: { @@ -114,7 +108,6 @@ export const getCode = ( const code = blockScripts?.[blockLabel]; if (!code) { - blockCode.push(getCommentForBlockWithoutCode(blockLabel)); continue; } diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunCode.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunCode.tsx index 0d16a729..091ebfca 100644 --- a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunCode.tsx +++ b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunCode.tsx @@ -54,7 +54,7 @@ function WorkflowRunCode(props?: Props) { pollIntervalMs: !isFinalized ? 3000 : undefined, }); const orderedBlockLabels = getOrderedBlockLabels(workflow); - const code = getCode(orderedBlockLabels, blockScripts).join(""); + const code = getCode(orderedBlockLabels, blockScripts).join("").trim(); useEffect(() => { setCacheKeyValue(