From 0643fe44a4a520727abd61ebcd9af293e25d762f Mon Sep 17 00:00:00 2001 From: Devosend Date: Sun, 24 Apr 2022 15:28:26 +0800 Subject: [PATCH] [Fix][UI Next][V1.0.0-Beta] Fix success logo is not display bug (#9694) --- .../projects/workflow/components/dag/use-node-status.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-node-status.ts b/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-node-status.ts index 8a36122573..68148a71eb 100644 --- a/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-node-status.ts +++ b/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/use-node-status.ts @@ -79,9 +79,12 @@ export function useNodeStatus(options: Options) { if (taskList.value) { taskList.value.forEach((taskInstance: any) => { setNodeStatus(taskInstance.taskCode, taskInstance.state, taskInstance) - nodeStore.updateDependentResult( - JSON.parse(taskInstance.dependentResult) - ) + + if (taskInstance.dependentResult) { + nodeStore.updateDependentResult( + JSON.parse(taskInstance.dependentResult) + ) + } }) } })