From 64cbfdccbc8a2394d2530fdd3e62be015d74c4e3 Mon Sep 17 00:00:00 2001 From: Jenny <32821331+jenny-s51@users.noreply.github.com> Date: Fri, 2 Aug 2024 16:26:23 -0400 Subject: [PATCH] fix(TaskPill): fix customStatusIcon bug --- packages/module/src/pipelines/components/nodes/TaskPill.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/module/src/pipelines/components/nodes/TaskPill.tsx b/packages/module/src/pipelines/components/nodes/TaskPill.tsx index 49d9f10..c2318db 100644 --- a/packages/module/src/pipelines/components/nodes/TaskPill.tsx +++ b/packages/module/src/pipelines/components/nodes/TaskPill.tsx @@ -57,6 +57,7 @@ const TaskPill: React.FC = observer( badgeTooltip, badgePopoverProps, badgePopoverParams, + customStatusIcon, nameLabelClass, taskIconClass, taskIcon, @@ -319,7 +320,7 @@ const TaskPill: React.FC = observer( (status === RunStatus.Running || status === RunStatus.InProgress) && styles.modifiers.spin )} > - + {customStatusIcon ?? } ) : null} @@ -384,7 +385,7 @@ const TaskPill: React.FC = observer( (status === RunStatus.Running || status === RunStatus.InProgress) && styles.modifiers.spin )} > - + {customStatusIcon ?? } )}