fix: [Advanced Orchestration] The content in the specified reply was repeated several times when the Q&A was output. #3754 (#3801)

This commit is contained in:
shaohuzhang1 2025-08-04 14:19:03 +08:00 committed by GitHub
parent fe94ca578e
commit 6e1fb1d4ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -372,7 +372,9 @@ class AppNodeModel extends HtmlResize.model {
this.sourceRules.push({
message: t('views.applicationWorkflow.tip.notRecyclable'),
validate: (sourceNode: any, targetNode: any, sourceAnchor: any, targetAnchor: any) => {
return !isLoop(sourceNode.id, targetNode.id)
const up_node_list = this.graphModel.getNodeIncomingNode(targetNode.id)
const is_c = up_node_list.find((up_node) => up_node.id == sourceNode.id)
return !is_c && !isLoop(sourceNode.id, targetNode.id)
},
})