mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #2330 from kazuhitoyokoi/master-fixcopyhandling4subflow
Fix handling to avoid invalid nested subflow
This commit is contained in:
commit
3a1d0f3695
@ -845,7 +845,7 @@ RED.nodes = (function() {
|
|||||||
var m = /^subflow:(.+)$/.exec(newNodes[i].type);
|
var m = /^subflow:(.+)$/.exec(newNodes[i].type);
|
||||||
if (m) {
|
if (m) {
|
||||||
var subflowId = m[1];
|
var subflowId = m[1];
|
||||||
var parent = getSubflow(newNodes[i].z || activeWorkspace);
|
var parent = getSubflow(activeWorkspace);
|
||||||
if (parent) {
|
if (parent) {
|
||||||
var err;
|
var err;
|
||||||
if (subflowId === parent.id) {
|
if (subflowId === parent.id) {
|
||||||
|
Loading…
Reference in New Issue
Block a user