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:
Braks
2025-01-16 11:42:01 +01:00
parent e94611a3b0
commit 424f6cf63c
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@vue-flow/core": patch
---
Correct connection keys.
+2 -2
View File
@@ -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)