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 3 years ago committed by GitHub
parent
commit
e8e2e3a13d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-cell-update.ts

2
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) const edges = getNodeEdge(id)
if (edges?.length) { if (edges?.length) {
edges.forEach((edge) => { edges.forEach((edge) => {
if (edge.getTargetNode()?.id === id) {
graph.value?.removeEdge(edge) graph.value?.removeEdge(edge)
}
}) })
} }
preTaskCode.forEach((task) => { preTaskCode.forEach((task) => {

Loading…
Cancel
Save