fix: Use correct field 'label' instead of 'name' for node display
- Frontend saves node name as 'label' (workflowSerializer.js:19) - Changed WorkflowNode.name to WorkflowNode.label - Changed node.name to node.label in workflow_executor.py - Priority: node.label > prompt_slug > node_type-id - Verified against frontend serialization code
This commit is contained in:
1 parent
d5325acee6
commit
df8e732709
2 files changed
+3
-3
No files matched your search
@@ -196,7 +196,7 @@ class WorkflowNode(BaseModel):
|
||||
"""
|
||||
id: str = Field(..., description="Eindeutige Knoten-ID")
|
||||
type: NodeType = Field(..., description="Knotentyp")
|
||||
name: Optional[str] = Field(None, description="Node-Name (vom Editor)")
|
||||
label: Optional[str] = Field(None, description="Node-Label (vom Editor, z.B. 'Qualitätseinschätzung')")
|
||||
position: Optional[Position] = Field(None, description="Position im visuellen Editor")
|
||||
|
||||
# ANALYSIS-Knoten
|
||||
|
||||
Reference in new issue
Block a user