You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello @WeepsDanky! I'm here to help you with bug reports, answer your questions, and assist you as you wait for a human maintainer. Let's work together to resolve any issues you may be experiencing.
The issue with the Iteration node not displaying a description might be related to the defaultValue or the checkValid function in the nodeDefault configuration. To resolve this, ensure that the description field is properly set and handled within the Iteration node's configuration. Here is a possible modification to include a description:
constnodeDefault: NodeDefault<IterationNodeType>={defaultValue: {start_node_id: '',iterator_selector: [],output_selector: [],description: '',// Add this line to include a description field},getAvailablePrevNodes(isChatMode: boolean){constnodes=isChatMode
? ALL_CHAT_AVAILABLE_BLOCKS
: ALL_COMPLETION_AVAILABLE_BLOCKS.filter(type=>type!==BlockEnum.End)returnnodes},getAvailableNextNodes(isChatMode: boolean){constnodes=isChatMode ? ALL_CHAT_AVAILABLE_BLOCKS : ALL_COMPLETION_AVAILABLE_BLOCKSreturnnodes},checkValid(payload: IterationNodeType,t: any){leterrorMessages=''if(!errorMessages&&(!payload.iterator_selector||payload.iterator_selector.length===0))errorMessages=t(`${i18nPrefix}.errorMsg.fieldRequired`,{field: t(`${i18nPrefix}.nodes.iteration.input`)})if(!errorMessages&&(!payload.output_selector||payload.output_selector.length===0))errorMessages=t(`${i18nPrefix}.errorMsg.fieldRequired`,{field: t(`${i18nPrefix}.nodes.iteration.output`)})return{isValid: !errorMessages,errorMessage: errorMessages,}},}exportdefaultnodeDefault
Ensure that the description is properly set when configuring the Iteration node in your workflow. This should help in displaying the description as expected [1].
Self Checks
Dify version
0.6.10
Cloud or Self Hosted
Cloud
Steps to reproduce
No description shown in Iteration node.
✔️ Expected Behavior
No response
❌ Actual Behavior
No response
The text was updated successfully, but these errors were encountered: