replaced handle lookup with ad-hoc way of searching for closest handles

This commit is contained in:
peterkogo
2024-08-13 17:30:35 +02:00
parent 6eb6a8e525
commit c3e7d61cb4
4 changed files with 75 additions and 96 deletions
@@ -159,6 +159,7 @@ function HandleComponent(
isValidConnection: isValidConnectionStore,
lib,
rfId: flowId,
nodeLookup,
} = store.getState();
if (!nodeId || (!connectionClickStartHandle && !isConnectableStart)) {
@@ -187,6 +188,7 @@ function HandleComponent(
flowId,
doc,
lib,
nodeLookup,
});
if (isValid && connection) {