refactor(edges): use internal id

This commit is contained in:
moklick
2019-07-31 18:05:37 +02:00
parent e348cccc76
commit f9bf2368c7
6 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -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 }));