Skip to content

Commit 01f5630

Browse files
committed
fix: add stopPropagation to stop Link onClick
1 parent 26496b7 commit 01f5630

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/components/workflowEditor/nodes/CDNode.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,13 @@ export class CDNode extends Component<CDNodeProps, CDNodeState> {
4545
}
4646

4747
handleDeleteCDNode = (e: React.MouseEvent) => {
48+
e.stopPropagation()
4849
e.preventDefault()
50+
51+
if (this.props.deploymentAppDeleteRequest) {
52+
this.onClickShowDeletePipelinePopup()
53+
return
54+
}
4955
this.setState({ showDeleteDialog: true })
5056
}
5157

0 commit comments

Comments
 (0)