fix(handles): reconnect for connectionMode=loose #4459

This commit is contained in:
moklick
2024-07-18 13:08:41 +02:00
parent f032638de3
commit 2693a735f0
3 changed files with 35 additions and 18 deletions
+5 -9
View File
@@ -282,16 +282,12 @@ function isValidHandle(
result.isValid = isValid && isValidConnection(connection);
if (handleLookup) {
const toHandle = handleLookup.find(
(h) => h.id === handleId && h.nodeId === handleNodeId && h.type === handleType
);
const toHandle = handleLookup?.get(`${handleNodeId}-${handleType}-${handleId}`);
if (toHandle) {
result.toHandle = {
...toHandle,
};
}
if (toHandle) {
result.toHandle = {
...toHandle,
};
}
}