fixed model change not working
This commit is contained in:
parent
ae046f8d1a
commit
530a223518
1 changed files with 2 additions and 0 deletions
|
|
@ -549,6 +549,8 @@ class FlowsService:
|
||||||
template = target_node.get("data", {}).get("node", {}).get("template", {})
|
template = target_node.get("data", {}).get("node", {}).get("template", {})
|
||||||
if template.get(field_name):
|
if template.get(field_name):
|
||||||
flow_data["data"]["nodes"][target_node_index]["data"]["node"]["template"][field_name]["value"] = field_value
|
flow_data["data"]["nodes"][target_node_index]["data"]["node"]["template"][field_name]["value"] = field_value
|
||||||
|
if "options" in flow_data["data"]["nodes"][target_node_index]["data"]["node"]["template"][field_name] and field_value not in flow_data["data"]["nodes"][target_node_index]["data"]["node"]["template"][field_name]["options"]:
|
||||||
|
flow_data["data"]["nodes"][target_node_index]["data"]["node"]["template"][field_name]["options"].append(field_value)
|
||||||
else:
|
else:
|
||||||
identifier = node_display_name
|
identifier = node_display_name
|
||||||
raise Exception(f"{field_name} field not found in {identifier} component")
|
raise Exception(f"{field_name} field not found in {identifier} component")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue