We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7099715 commit 74c2ac2Copy full SHA for 74c2ac2
src/components/blocks/blocks.js
@@ -837,8 +837,10 @@ Blocks.prototype.importProcessGraph = function(processGraph, registry) {
837
838
// Import edges
839
var nodes = pg.getNodes();
840
- for(let i in nodes) {
841
- var node = nodes[i];
+ // iterating directly through nodes causes error in Edge. Using keys instead
+ var keys = Object.keys(nodes);
842
+ keys.forEach(function(key) {
843
+ var node = nodes[key];
844
845
var args = node.getArgumentNames();
846
for(let i in args) {
@@ -867,7 +869,7 @@ Blocks.prototype.importProcessGraph = function(processGraph, registry) {
867
869
break;
868
870
}
871
- }
872
+ }, this);
873
},
874
875
Blocks.prototype.importNodesFromProcessGraph = function(nodes, x = 0, y = 0) {
0 commit comments