From 4772bca14aeb9c0d6e41d1fcac06624bfd3a54dd Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Thu, 15 Oct 2015 11:34:17 +0100 Subject: [PATCH] Undo 'selection to subflow' not restoring nodes --- editor/js/history.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; });