fix(core): correct connection keys (#1749)
* fix(core): correct connection keys Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> * chore(changeset): add Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> --------- Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@vue-flow/core": patch
|
||||
---
|
||||
|
||||
Correct connection keys.
|
||||
@@ -171,8 +171,8 @@ export function updateConnectionLookup(connectionLookup: ConnectionLookup, edgeL
|
||||
const { source: sourceNode, target: targetNode, sourceHandle = null, targetHandle = null } = edge
|
||||
|
||||
const connection = { edgeId: edge.id, source: sourceNode, target: targetNode, sourceHandle, targetHandle }
|
||||
const sourceKey = `${sourceNode}-${sourceHandle}`
|
||||
const targetKey = `${targetNode}-${targetHandle}`
|
||||
const sourceKey = `${sourceNode}-${sourceHandle}--${targetNode}-${targetHandle}`
|
||||
const targetKey = `${targetNode}-${targetHandle}--${sourceNode}-${sourceHandle}`
|
||||
|
||||
addConnectionToLookup('source', connection, targetKey, connectionLookup, sourceNode, sourceHandle)
|
||||
addConnectionToLookup('target', connection, sourceKey, connectionLookup, targetNode, targetHandle)
|
||||
|
||||
Reference in New Issue
Block a user