Skip to content

Commit 7df61c5

Browse files
committed
fix: [Advanced Orchestration] The content in the specified reply was repeated several times when the Q&A was output. #3754
1 parent fe94ca5 commit 7df61c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ui/src/workflow/common/app-node.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,9 @@ class AppNodeModel extends HtmlResize.model {
372372
this.sourceRules.push({
373373
message: t('views.applicationWorkflow.tip.notRecyclable'),
374374
validate: (sourceNode: any, targetNode: any, sourceAnchor: any, targetAnchor: any) => {
375-
return !isLoop(sourceNode.id, targetNode.id)
375+
const up_node_list = this.graphModel.getNodeIncomingNode(targetNode.id)
376+
const is_c = up_node_list.find((up_node) => up_node.id == sourceNode.id)
377+
return !is_c && !isLoop(sourceNode.id, targetNode.id)
376378
},
377379
})
378380

0 commit comments

Comments
 (0)