fix(core): fetch correct source and target nodes for isValidConnection (#1922)
* fix(core): fetch correct source and target nodes for isValidConnection Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> * chore(changeset): add --------- Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
5
.changeset/stale-phones-cross.md
Normal file
5
.changeset/stale-phones-cross.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@vue-flow/core": patch
|
||||
---
|
||||
|
||||
Fetch the correct source and target nodes for isValidConnection.
|
||||
@@ -191,8 +191,8 @@ export function isValidHandle(
|
||||
isValidConnection(connection, {
|
||||
nodes,
|
||||
edges,
|
||||
sourceNode: findNode(fromNodeId)!,
|
||||
targetNode: findNode(handleNodeId)!,
|
||||
sourceNode: findNode(connection.source)!,
|
||||
targetNode: findNode(connection.target)!,
|
||||
})
|
||||
|
||||
result.toHandle = handle
|
||||
|
||||
Reference in New Issue
Block a user