fix(svelte): use handle id for connection lookup
This commit is contained in:
@@ -92,7 +92,9 @@
|
|||||||
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
||||||
store.edges;
|
store.edges;
|
||||||
if (onconnect || ondisconnect) {
|
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)) {
|
if (prevConnections && !areConnectionMapsEqual(connections, prevConnections)) {
|
||||||
const _connections = connections ?? new Map();
|
const _connections = connections ?? new Map();
|
||||||
|
|||||||
Reference in New Issue
Block a user