From 8215fa8e6f01f5479a1487b70b7b21bf138cdc41 Mon Sep 17 00:00:00 2001 From: Amy0104 <97265214+Amy0104@users.noreply.github.com> Date: Sat, 7 May 2022 14:18:17 +0800 Subject: [PATCH] [Fix][UI Next][V1.0.0-Beta] Fix console bug after deleting a node from the context menu. (#9932) --- .../src/views/projects/workflow/components/dag/use-task-edit.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dolphinscheduler-ui/src/views/projects/workflow/components/dag/use-task-edit.ts b/dolphinscheduler-ui/src/views/projects/workflow/components/dag/use-task-edit.ts index 87a22e9ea5..9f305825c0 100644 --- a/dolphinscheduler-ui/src/views/projects/workflow/components/dag/use-task-edit.ts +++ b/dolphinscheduler-ui/src/views/projects/workflow/components/dag/use-task-edit.ts @@ -120,7 +120,7 @@ export function useTaskEdit(options: Options) { process.postTaskCode === code || process.preTaskCode === code ) }) - cells.forEach((cell) => { + cells?.forEach((cell) => { if (cell.isEdge()) { const preTaskCode = cell.getSourceCellId() const postTaskCode = cell.getTargetCellId()