fix(core): use correct handlesuffix in getHandleConnections (#1880)
* fix(core): use correct handlesuffix in `getHandleConnections` 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:
@@ -73,7 +73,8 @@ export function useActions(state: State, nodeLookup: ComputedRef<NodeLookup>, ed
|
||||
}
|
||||
|
||||
const getHandleConnections: Actions['getHandleConnections'] = ({ id, type, nodeId }) => {
|
||||
return Array.from(state.connectionLookup.get(`${nodeId}-${type}-${id ?? null}`)?.values() ?? [])
|
||||
const handleSuffix = id ? `-${type}-${id}` : `-${type}`
|
||||
return Array.from(state.connectionLookup.get(`${nodeId}${handleSuffix}`)?.values() ?? [])
|
||||
}
|
||||
|
||||
const findNode: Actions['findNode'] = (id) => {
|
||||
|
||||
Reference in New Issue
Block a user