Skip to content

Commit 780cdef

Browse files
authored
Merge pull request #300 from avinxshKD/fix/edge-validation-source-target
fix edge validation source id
2 parents 190f811 + 6b6d043 commit 780cdef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/graph-builder/graph-core/3-component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class GraphComponent extends GraphCanvas {
124124
type: T.Model_Open_Create_Edge,
125125
cb: (edgeLabel, edgeStyle) => {
126126
const message = this.validiateEdge(edgeLabel, edgeStyle,
127-
edgeData.targetID, edgeData.targetID, null, 'New');
127+
edgeData.sourceID, edgeData.targetID, null, 'New');
128128
if (message.ok) this.addEdgeWithLabel({ ...edgeData, type: edgeData.type || 'ordin' }, tid);
129129
return message;
130130
},

0 commit comments

Comments
 (0)