Skip to content

Commit

Permalink
fix(TaskPill): fix customStatusIcon bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jenny-s51 authored and jeff-phillips-18 committed Oct 25, 2024
1 parent 970574f commit d37a664
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/module/src/pipelines/components/nodes/TaskPill.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const TaskPill: React.FC<TaskPillProps> = observer(
badgeClassName = styles.topologyPipelinesPillBadge,
badgeTooltip,
badgePopoverParams,
customStatusIcon,
nameLabelClass,
taskIconClass,
taskIcon,
Expand Down Expand Up @@ -306,7 +307,7 @@ const TaskPill: React.FC<TaskPillProps> = observer(
(status === RunStatus.Running || status === RunStatus.InProgress) && styles.modifiers.spin
)}
>
<StatusIcon status={status} />
{customStatusIcon ?? <StatusIcon status={status} />}
</g>
</g>
) : null}
Expand Down Expand Up @@ -371,7 +372,7 @@ const TaskPill: React.FC<TaskPillProps> = observer(
(status === RunStatus.Running || status === RunStatus.InProgress) && styles.modifiers.spin
)}
>
<StatusIcon status={status} />
{customStatusIcon ?? <StatusIcon status={status} />}
</g>
</g>
)}
Expand Down

0 comments on commit d37a664

Please sign in to comment.