Skip to content

Commit

Permalink
fix this issue (#15695)
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinjiang authored Mar 11, 2024
1 parent cd63069 commit 2395ba5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2395ba5

Please sign in to comment.