You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by so...@apache.org on 2022/03/17 04:39:26 UTC

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

This is an automated email from the ASF dual-hosted git repository.

songjian pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new e8e2e3a  [Fix][UI Next][V1.0.0-Alpha] Fix the edge  missing after editing the first task node in dag page. (#8947)
e8e2e3a is described below

commit e8e2e3a13d0922dc7c21894a4ba6e2f183ec5e92
Author: Amy0104 <97...@users.noreply.github.com>
AuthorDate: Thu Mar 17 12:35:06 2022 +0800

    [Fix][UI Next][V1.0.0-Alpha] Fix the edge  missing after editing the first task node in dag page. (#8947)
---
 .../src/views/projects/workflow/components/dag/use-cell-update.ts     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-cell-update.ts b/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-cell-update.ts
index 8069ac9..1cfc1e2 100644
--- a/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-cell-update.ts
+++ b/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) => {