Merge pull request #2330 from kazuhitoyokoi/master-fixcopyhandling4subflow

Fix handling to avoid invalid nested subflow
This commit is contained in:
Nick O'Leary 2019-10-28 09:58:32 +00:00 committed by GitHub
commit 3a1d0f3695
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -845,7 +845,7 @@ RED.nodes = (function() {
var m = /^subflow:(.+)$/.exec(newNodes[i].type);
if (m) {
var subflowId = m[1];
var parent = getSubflow(newNodes[i].z || activeWorkspace);
var parent = getSubflow(activeWorkspace);
if (parent) {
var err;
if (subflowId === parent.id) {