From aa31a8bbc5413681fbfff095d76d9aeaa9290b67 Mon Sep 17 00:00:00 2001 From: Matt Gilman Date: Thu, 18 Aug 2016 15:53:06 -0400 Subject: [PATCH] NIFI-2597: - Updating the correct object when attempting to create a self loop. --- .../src/main/webapp/js/nf/canvas/nf-connection.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-connection.js b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-connection.js index 3428d1a484c2..01d411aafd0c 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-connection.js +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-connection.js @@ -1359,12 +1359,12 @@ nf.Connection = (function () { var xOffset = nf.Connection.config.selfLoopXOffset; var yOffset = nf.Connection.config.selfLoopYOffset; - connectionEntity.connection.bends = []; - connectionEntity.connection.bends.push({ + connectionEntity.component.bends = []; + connectionEntity.component.bends.push({ 'x': (rightCenter.x + xOffset), 'y': (rightCenter.y - yOffset) }); - connectionEntity.connection.bends.push({ + connectionEntity.component.bends.push({ 'x': (rightCenter.x + xOffset), 'y': (rightCenter.y + yOffset) });