Skip to content

Commit 48d639a

Browse files
committed
Update
1 parent 0b967a5 commit 48d639a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Template/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export class Template extends Component<{}, State> {
135135
} else if (e.name && e.isDirected){
136136
graph.addEdge(new Edge(graph.getVertex(e.source)[0], graph.getVertex(e.target)[0], e.name, '', e.isDirected));
137137
} else if (e.weightLabel && e.isDirected){
138-
graph.addEdge(new Edge(graph.getVertex(e.source)[0], graph.getVertex(e.target)[0], '', e.weightLabel[0], e.isDirected));
138+
graph.addEdge(new Edge(graph.getVertex(e.source)[0], graph.getVertex(e.target)[0], '', e.weightLabel, e.isDirected));
139139
} else if (e.name) {
140140
graph.addEdge(new Edge(graph.getVertex(e.source)[0], graph.getVertex(e.target)[0], e.name));
141141
} else if (e.weightLabel) {

0 commit comments

Comments
 (0)