mirror of
https://github.com/langgenius/dify.git
synced 2026-05-13 08:57:28 +08:00
Update api/dify_graph/nodes/loop/loop_node.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
7b76fdc1d3
commit
bc82676d93
@ -410,6 +410,9 @@ class LoopNode(LLMUsageTrackingMixin, Node[LoopNodeData]):
|
||||
# configs still serialize array constants as JSON strings.
|
||||
if isinstance(original_value, str):
|
||||
value = json.loads(original_value) if original_value else []
|
||||
elif original_value is None:
|
||||
# Preserve legacy behavior: treat missing/empty array constants as [].
|
||||
value = []
|
||||
else:
|
||||
value = original_value
|
||||
else:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user