Browse Source

[Fix][UI Next][V1.0.0-Alpha] Fix the edge missing after editing the first task node in dag page. (#8947)

3.0.0/version-upgrade
Amy0104 2 years ago committed by GitHub
parent
commit
e8e2e3a13d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-cell-update.ts

4
dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-cell-update.ts

@ -86,7 +86,9 @@ export function useCellUpdate(options: Options) {
const edges = getNodeEdge(id)
if (edges?.length) {
edges.forEach((edge) => {
graph.value?.removeEdge(edge)
if (edge.getTargetNode()?.id === id) {
graph.value?.removeEdge(edge)
}
})
}
preTaskCode.forEach((task) => {

Loading…
Cancel
Save