1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

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

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