fix(api/nodes): Fallback to get_any in some nodes that use object or array. (#6566)

This commit is contained in:
-LAN- 2024-07-23 15:51:07 +08:00 committed by GitHub
commit cfc408095c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 21 additions and 20 deletions

View file

@ -24,8 +24,8 @@ class EndNode(BaseNode):
outputs = {}
for variable_selector in output_variables:
value = variable_pool.get(variable_selector.value_selector)
outputs[variable_selector.variable] = value.value if value else None
value = variable_pool.get_any(variable_selector.value_selector)
outputs[variable_selector.variable] = value
return NodeRunResult(
status=WorkflowNodeExecutionStatus.SUCCEEDED,