From 36d1c8c337f279286125c40c9059fac13cbc339e Mon Sep 17 00:00:00 2001 From: pianist <26953709+Pianist038801@users.noreply.github.com> Date: Tue, 16 Nov 2021 14:53:39 -0500 Subject: [PATCH] fix: show correct task type in execution view (#225) Signed-off-by: Pianist038801 Co-authored-by: Pianist038801 --- src/components/Executions/types.ts | 2 +- src/components/Executions/useNodeExecutionDetails.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/Executions/types.ts b/src/components/Executions/types.ts index d84100f4e..728cd12dd 100644 --- a/src/components/Executions/types.ts +++ b/src/components/Executions/types.ts @@ -61,7 +61,7 @@ export interface WorkflowNodeExecution extends NodeExecution { } export interface NodeExecutionDetails { - displayType: NodeExecutionDisplayType; + displayType: string; displayId: string; taskTemplate?: TaskTemplate; } diff --git a/src/components/Executions/useNodeExecutionDetails.ts b/src/components/Executions/useNodeExecutionDetails.ts index fe1410bdd..4af381f9a 100644 --- a/src/components/Executions/useNodeExecutionDetails.ts +++ b/src/components/Executions/useNodeExecutionDetails.ts @@ -78,9 +78,7 @@ function createTaskNodeExecutionDetails( return { taskTemplate, displayId: taskTemplate.id.name, - displayType: - taskTypeToNodeExecutionDisplayType[taskTemplate.type as TaskType] ?? - NodeExecutionDisplayType.UnknownTask + displayType: taskTemplate.type }; }