Skip to content

Commit

Permalink
fix: show correct task type in execution view (flyteorg#225)
Browse files Browse the repository at this point in the history
Signed-off-by: Pianist038801 <[email protected]>

Co-authored-by: Pianist038801 <[email protected]>
  • Loading branch information
Pianist038801 and Pianist038801 authored Nov 16, 2021
1 parent b0774b2 commit 36d1c8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/Executions/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export interface WorkflowNodeExecution extends NodeExecution {
}

export interface NodeExecutionDetails {
displayType: NodeExecutionDisplayType;
displayType: string;
displayId: string;
taskTemplate?: TaskTemplate;
}
Expand Down
4 changes: 1 addition & 3 deletions src/components/Executions/useNodeExecutionDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ function createTaskNodeExecutionDetails(
return {
taskTemplate,
displayId: taskTemplate.id.name,
displayType:
taskTypeToNodeExecutionDisplayType[taskTemplate.type as TaskType] ??
NodeExecutionDisplayType.UnknownTask
displayType: taskTemplate.type
};
}

Expand Down

0 comments on commit 36d1c8c

Please sign in to comment.