Skip to content

Commit

Permalink
Merge pull request #229 from jenny-s51/iss227
Browse files Browse the repository at this point in the history
fix(TaskPill): fix customStatusIcon bug
  • Loading branch information
dlabaj authored Aug 6, 2024
2 parents 006ac82 + 64cbfdc commit 68492bb
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 @@ -57,6 +57,7 @@ const TaskPill: React.FC<TaskPillProps> = observer(
badgeTooltip,
badgePopoverProps,
badgePopoverParams,
customStatusIcon,
nameLabelClass,
taskIconClass,
taskIcon,
Expand Down Expand Up @@ -319,7 +320,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 @@ -384,7 +385,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 68492bb

Please sign in to comment.