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:
Braks
2025-08-12 17:05:26 +02:00
parent 58a52e1374
commit c2aad1e43b
2 changed files with 7 additions and 2 deletions

View File

@@ -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