Merge pull request #4093 from node-red/subflow-nested-context

Generate stable ids for subflow instance internal nodes
This commit is contained in:
Nick O'Leary
2023-03-06 17:13:10 +00:00
committed by GitHub
2 changed files with 21 additions and 10 deletions

View File

@@ -474,7 +474,7 @@ class Subflow extends Flow {
*/
function createNodeInSubflow(subflowInstanceId, def) {
let node = clone(def);
let nid = redUtil.generateId();
let nid = `${subflowInstanceId}-${node.id}` //redUtil.generateId();
// console.log("Create Node In subflow",node._alias, "--->",nid, "(",node.type,")")
// node_map[node.id] = node;
node._alias = node.id;