Skip to content

Commit a0da7e3

Browse files
fix: Show pipeline remove button for all if more than one stage (#6148)
1 parent 3fec79c commit a0da7e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/web/components/release-pipelines/CreateReleasePipeline.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ function CreateReleasePipeline() {
359359
handleOnChange(stageData, index)
360360
}
361361
projectId={Number(projectId)}
362-
showRemoveButton={index > 0}
362+
showRemoveButton={pipelineData.stages.length > 1}
363363
onRemove={() => handleRemoveStage(index)}
364364
/>
365365
<div className='flex-1'>

0 commit comments

Comments
 (0)