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

This commit is contained in:
Jonathan Dobson
2025-09-18 11:19:30 -04:00
committed by GitHub
parent 44d7d11380
commit d2e2e9af74
2 changed files with 1 additions and 8 deletions

View File

@@ -91,12 +91,6 @@ export const getOrderedBlockLabels = (workflow?: WorkflowApiResponse) => {
return blockLabels; return blockLabels;
}; };
const getCommentForBlockWithoutCode = (blockLabel: string) => {
return `
# block '${blockLabel}' code goes here
`;
};
export const getCode = ( export const getCode = (
orderedBlockLabels: string[], orderedBlockLabels: string[],
blockScripts?: { blockScripts?: {
@@ -114,7 +108,6 @@ export const getCode = (
const code = blockScripts?.[blockLabel]; const code = blockScripts?.[blockLabel];
if (!code) { if (!code) {
blockCode.push(getCommentForBlockWithoutCode(blockLabel));
continue; continue;
} }

View File

@@ -54,7 +54,7 @@ function WorkflowRunCode(props?: Props) {
pollIntervalMs: !isFinalized ? 3000 : undefined, pollIntervalMs: !isFinalized ? 3000 : undefined,
}); });
const orderedBlockLabels = getOrderedBlockLabels(workflow); const orderedBlockLabels = getOrderedBlockLabels(workflow);
const code = getCode(orderedBlockLabels, blockScripts).join(""); const code = getCode(orderedBlockLabels, blockScripts).join("").trim();
useEffect(() => { useEffect(() => {
setCacheKeyValue( setCacheKeyValue(