Skip to content

Automate browser based workflows with AI

remove placeholder text for blocks without in the the workflow run ui (#3465)

Jonathan Dobsond2e2e9af74c9
diff --git a/skyvern-frontend/src/routes/workflows/utils.ts b/skyvern-frontend/src/routes/workflows/utils.ts
index aad059f93..c916a9b44 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 0d16a7294..091ebfcad 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(