fixed 图形化流水线增加分支流程-启动节点

This commit is contained in:
xxq250 2024-12-06 11:25:01 +08:00
parent 6142f483ca
commit b8de8a1d3b
1 changed files with 2 additions and 2 deletions

View File

@ -165,9 +165,9 @@ class Api::V1::Projects::PipelinesController < Api::V1::BaseController
def build_nodes(params_nodes)
steps_nodes = []
params_nodes.each do |input_node|
node = Action::Node.find_by(name: input_node["name"])
node = Action::Node.find_by(name: input_node["data"]["name"])
next if node.blank?
node.label = input_node["label"] if input_node["label"].present?
node.label = input_node["data"]["label"] if input_node["data"]["label"].present?
run_values = {}
input_values = {}
if input_node["inputs"].present?