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) + ) + } }) } })