From d2e2e9af74c94db496dd7c2c21c424297fdb4033 Mon Sep 17 00:00:00 2001 From: Jonathan Dobson Date: Thu, 18 Sep 2025 11:19:30 -0400 Subject: [PATCH] remove placeholder text for blocks without in the the workflow run ui (#3465) --- skyvern-frontend/src/routes/workflows/utils.ts | 7 ------- .../src/routes/workflows/workflowRun/WorkflowRunCode.tsx | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) 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(