File tree Expand file tree Collapse file tree
keep-ui/app/workflows/builder Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,6 +20,6 @@ export interface WorkflowExecution {
2020 execution_time ?: number ;
2121}
2222
23- export interface WorkflowExecutionFailure {
23+ export interface WorkflowExecutionFailure extends WorkflowExecution {
2424 error : string ;
2525}
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import {
2121} from "@tremor/react" ;
2222import useSWR from "swr" ;
2323import { fetcher } from "../../../utils/fetcher" ;
24- import { WorkflowExecution } from "./types" ;
24+ import { WorkflowExecution , WorkflowExecutionFailure } from "./types" ;
2525
2626interface WorkflowResultsProps {
2727 workflow_id : string ;
@@ -107,7 +107,7 @@ export function ExecutionResults({
107107 executionData,
108108 checks,
109109} : {
110- executionData : WorkflowExecution ;
110+ executionData : WorkflowExecution | WorkflowExecutionFailure ;
111111 checks ?: number ;
112112} ) {
113113 const status = executionData ?. status ;
You can’t perform that action at this time.
0 commit comments