fix(svelte): use handle id for connection lookup

This commit is contained in:
moklick
2025-01-09 17:42:01 +01:00
parent a13b6bf4ea
commit 5c5631f307
@@ -92,7 +92,9 @@
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
store.edges;
if (onconnect || ondisconnect) {
let connections = store.connectionLookup.get(`${nodeId}-${type}${id ? `-${id}` : ''}`);
let connections = store.connectionLookup.get(
`${nodeId}-${type}${handleId ? `-${handleId}` : ''}`
);
if (prevConnections && !areConnectionMapsEqual(connections, prevConnections)) {
const _connections = connections ?? new Map();