diff --git a/editor/js/history.js b/editor/js/history.js index 85ecb6aaf..2443109ad 100644 --- a/editor/js/history.js +++ b/editor/js/history.js @@ -231,7 +231,7 @@ RED.history = (function() { ev.node.changed = ev.changed; } else if (ev.t == "createSubflow") { if (ev.nodes) { - RED.nodes.filterNodes({z:ev.subflow.id}).forEach(function(n) { + RED.nodes.filterNodes({z:ev.subflow.subflow.id}).forEach(function(n) { n.z = ev.activeWorkspace; n.dirty = true; });