Skip to content

Commit

Permalink
Fix typo in graph edge construction code
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 committed Jul 4, 2024
1 parent 1fddf29 commit e453b2f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions langchain-core/src/runnables/graph_mermaid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ export function drawMermaid(
return acc;
}, [])
.join("<br>");
if (edge.conditional) {
edgeLabel = ` -. ${edgeData} .-> `;
} else {
edgeLabel = ` -- ${edgeData} --> `;
}
}
if (edge.conditional) {
edgeLabel = ` -. ${edgeData} .-> `;
} else {
edgeLabel = ` -- ${edgeData} --> `;
}
} else {
if (edge.conditional) {
Expand Down

0 comments on commit e453b2f

Please sign in to comment.