Skip to content

Commit d37a664

Browse files
jenny-s51jeff-phillips-18
authored andcommitted
fix(TaskPill): fix customStatusIcon bug
1 parent 970574f commit d37a664

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/module/src/pipelines/components/nodes/TaskPill.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ const TaskPill: React.FC<TaskPillProps> = observer(
5656
badgeClassName = styles.topologyPipelinesPillBadge,
5757
badgeTooltip,
5858
badgePopoverParams,
59+
customStatusIcon,
5960
nameLabelClass,
6061
taskIconClass,
6162
taskIcon,
@@ -306,7 +307,7 @@ const TaskPill: React.FC<TaskPillProps> = observer(
306307
(status === RunStatus.Running || status === RunStatus.InProgress) && styles.modifiers.spin
307308
)}
308309
>
309-
<StatusIcon status={status} />
310+
{customStatusIcon ?? <StatusIcon status={status} />}
310311
</g>
311312
</g>
312313
) : null}
@@ -371,7 +372,7 @@ const TaskPill: React.FC<TaskPillProps> = observer(
371372
(status === RunStatus.Running || status === RunStatus.InProgress) && styles.modifiers.spin
372373
)}
373374
>
374-
<StatusIcon status={status} />
375+
{customStatusIcon ?? <StatusIcon status={status} />}
375376
</g>
376377
</g>
377378
)}

0 commit comments

Comments
 (0)