From b8de8a1d3b28d03366276cb3d424b85c7217dfd9 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Fri, 6 Dec 2024 11:25:01 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20=E5=9B=BE=E5=BD=A2=E5=8C=96=E6=B5=81?= =?UTF-8?q?=E6=B0=B4=E7=BA=BF=E5=A2=9E=E5=8A=A0=E5=88=86=E6=94=AF=E6=B5=81?= =?UTF-8?q?=E7=A8=8B-=E5=90=AF=E5=8A=A8=E8=8A=82=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/api/v1/projects/pipelines_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/v1/projects/pipelines_controller.rb b/app/controllers/api/v1/projects/pipelines_controller.rb index 8d8f7695b..f73626e1e 100644 --- a/app/controllers/api/v1/projects/pipelines_controller.rb +++ b/app/controllers/api/v1/projects/pipelines_controller.rb @@ -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?