mirror of
https://github.com/langgenius/dify.git
synced 2025-12-25 10:01:31 -05:00
fix: Variable Assigner node silently fails for legacy V1 data format (#28867)
This commit is contained in:
@@ -64,7 +64,10 @@ class DifyNodeFactory(NodeFactory):
|
||||
if not node_mapping:
|
||||
raise ValueError(f"No class mapping found for node type: {node_type}")
|
||||
|
||||
node_class = node_mapping.get(LATEST_VERSION)
|
||||
latest_node_class = node_mapping.get(LATEST_VERSION)
|
||||
node_version = str(node_data.get("version", "1"))
|
||||
matched_node_class = node_mapping.get(node_version)
|
||||
node_class = matched_node_class or latest_node_class
|
||||
if not node_class:
|
||||
raise ValueError(f"No latest version class found for node type: {node_type}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user