diff --git a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunOutput.tsx b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunOutput.tsx index da6b438d..dcbc5a5c 100644 --- a/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunOutput.tsx +++ b/skyvern-frontend/src/routes/workflows/workflowRun/WorkflowRunOutput.tsx @@ -11,6 +11,7 @@ import { findBlockSurroundingAction } from "./workflowTimelineUtils"; import { useWorkflowRunTimelineQuery } from "../hooks/useWorkflowRunTimelineQuery"; import { Status } from "@/api/types"; import { AutoResizingTextarea } from "@/components/AutoResizingTextarea/AutoResizingTextarea"; +import { isTaskVariantBlock } from "../types/workflowTypes"; function WorkflowRunOutput() { const { data: workflowRunTimeline, isLoading: workflowRunTimelineIsLoading } = @@ -44,47 +45,65 @@ function WorkflowRunOutput() { const activeBlock = getActiveBlock(); const showExtractedInformation = - activeBlock && activeBlock.status === Status.Completed; + activeBlock && + isTaskVariantBlock(activeBlock) && + activeBlock.status === Status.Completed; const outputs = workflowRun?.outputs; const fileUrls = workflowRun?.downloaded_file_urls ?? []; + return (
{activeBlock ? (

Block Outputs

-
-

- {showExtractedInformation - ? "Extracted Information" - : "Failure Reason"} -

- {showExtractedInformation ? ( + {activeBlock.output === null ? ( +
This block has no outputs
+ ) : isTaskVariantBlock(activeBlock) ? ( +
+

+ {showExtractedInformation + ? "Extracted Information" + : "Failure Reason"} +

+ {showExtractedInformation ? ( + + ) : ( + + )} +
+ ) : ( +
+

Output

- ) : ( - - )} -
+
+ )}
) : null}