Skip to content

Commit

Permalink
fix(ui): promote button mistakenly hidden on certain stage nodes (aku…
Browse files Browse the repository at this point in the history
  • Loading branch information
rbreeze authored Sep 18, 2023
1 parent 300df52 commit 9798de2
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions ui/src/features/project/project-details/nodes/stage-node.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,23 +71,21 @@ export const StageNode = ({
{stage.status?.currentFreight?.id?.slice(0, 7) || 'N/A'}{' '}
</p>
</div>
{!hasNoSubscribers && (
<>
<>
<Nodule
begin={true}
nodeHeight={height}
onClick={() => onPromoteClick('default')}
selected={promoting === 'default'}
/>
{!hasNoSubscribers && (
<Nodule
begin={true}
nodeHeight={height}
onClick={() => onPromoteClick('default')}
selected={promoting === 'default'}
onClick={() => onPromoteClick('subscribers')}
selected={promoting === 'subscribers'}
/>
{!hasNoSubscribers && (
<Nodule
nodeHeight={height}
onClick={() => onPromoteClick('subscribers')}
selected={promoting === 'subscribers'}
/>
)}
</>
)}
)}
</>
</div>
</div>
);
Expand Down

0 comments on commit 9798de2

Please sign in to comment.