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

kerwin 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 2395ba5ef8 fix this issue (#15695)
2395ba5ef8 is described below

commit 2395ba5ef84bdbce127edc36e6dd7e4f064ff0b1
Author: calvin <[email protected]>
AuthorDate: Mon Mar 11 21:02:14 2024 +0800

    fix this issue (#15695)
---
 .../src/views/projects/workflow/components/dag/use-task-edit.ts       | 4 +++-
 1 file changed, 3 insertions(+), 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 79d4eacb6a..361a1fef39 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
@@ -163,15 +163,17 @@ export function useTaskEdit(options: Options) {
    */
   function taskConfirm({ data }: any) {
     const taskDef = formatParams(data).taskDefinitionJsonObj as NodeData
+
     // override target config
     processDefinition.value.taskDefinitionList =
       processDefinition.value.taskDefinitionList.map((task) => {
         if (task.code === currTask.value?.code) {
           setNodeName(task.code + '', taskDef.name)
           let fillColor = '#ffffff'
-          if (task.flag === 'YES') {
+          if (taskDef.flag === 'NO') {
             fillColor = 'var(--custom-disable-bg)'
           }
+
           setNodeFillColor(task.code + '', fillColor)
 
           setNodeEdge(String(task.code), data.preTasks)

Reply via email to