diff --git a/packages/node_modules/@node-red/runtime/lib/flows/Subflow.js b/packages/node_modules/@node-red/runtime/lib/flows/Subflow.js index 4588e3d9b..ef405c6c7 100644 --- a/packages/node_modules/@node-red/runtime/lib/flows/Subflow.js +++ b/packages/node_modules/@node-red/runtime/lib/flows/Subflow.js @@ -341,13 +341,13 @@ class Subflow extends Flow { getSetting(key) { const node = this.subflowInstance; if (node) { - if (key === "NR_NODE_NAME") { + if (key === "NR_NODE_NAME" || key === "NR_SUBFLOW_NAME") { return node.name; } - if (key === "NR_NODE_ID") { + if (key === "NR_NODE_ID" || key === "NR_SUBFLOW_ID") { return node.id; } - if (key === "NR_NODE_PATH") { + if (key === "NR_NODE_PATH" || key === "NR_SUBFLOW_PATH") { return node._path; } }