Undo 'selection to subflow' not restoring nodes

This commit is contained in:
Nick O'Leary 2015-10-15 11:34:17 +01:00
parent 6ae1a5ba0d
commit 4772bca14a
1 changed files with 1 additions and 1 deletions

View File

@ -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;
});