mirror of
https://github.com/langgenius/dify.git
synced 2026-04-29 06:58:05 +08:00
help line
This commit is contained in:
@ -34,7 +34,7 @@ export const nodesLevelOrderTraverse = (
|
||||
|
||||
callback({ node, depth, breath })
|
||||
|
||||
const targetBranches = node.data.targetBranches
|
||||
const targetBranches = node.data._targetBranches
|
||||
if (targetBranches?.length) {
|
||||
const targetEdges = getConnectedEdges([node], edges)
|
||||
|
||||
@ -133,9 +133,7 @@ export const getLayoutByDagre = (nodes: Node[], edges: Edge[]) => {
|
||||
})
|
||||
|
||||
edges.forEach((edge) => {
|
||||
dagreGraph.setEdge(edge.source, edge.target, {
|
||||
weight: edge?.data?.weight || 1,
|
||||
})
|
||||
dagreGraph.setEdge(edge.source, edge.target)
|
||||
})
|
||||
|
||||
dagre.layout(dagreGraph)
|
||||
|
||||
Reference in New Issue
Block a user