fix(editor): Fix canvas endpoint snapping when dragging connection (#7346)

Github issue / Community forum post (link here to close automatically):

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
This commit is contained in:
OlegIvaniv 2023-10-04 17:10:42 +03:00 committed by GitHub
parent ddc26c21bd
commit b59b9086d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2743,7 +2743,11 @@ export default defineComponent({
if (nodeType && inputs.length === 1) {
this.pullConnActiveNodeName = node.name;
const endpointUUID = this.getInputEndpointUUID(nodeName, 0);
const endpointUUID = this.getInputEndpointUUID(
nodeName,
connection.parameters.type,
0,
);
if (endpointUUID) {
const endpoint = this.instance?.getEndpoint(endpointUUID);