refactor(edges): use internal id
This commit is contained in:
@@ -20,7 +20,7 @@ function renderEdge(e, props, graphContext) {
|
||||
|
||||
return (
|
||||
<EdgeComponent
|
||||
key={`${e.source}-${e.target}`}
|
||||
key={e.id}
|
||||
id={e.id}
|
||||
type={e.type}
|
||||
sourceNode={sourceNode}
|
||||
|
||||
@@ -23,7 +23,6 @@ function onMouseDown(evt, { nodeId, dispatch, onConnect, isTarget }) {
|
||||
const targetId = elementBelow.getAttribute('data-nodeid');
|
||||
onConnect({ source: nodeId, target: targetId });
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
dispatch(setConnecting({ connectionSourceId: false }));
|
||||
|
||||
Reference in New Issue
Block a user