Merge pull request #5025 from node-red/browse-subflow-flow-context

Show subflow flow context under node section of sidebar
This commit is contained in:
Nick O'Leary 2025-02-10 16:51:55 +00:00 committed by GitHub
commit e9dab46de8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -96,7 +96,11 @@ var api = module.exports = {
} else if (scope === 'node') {
var node = runtime.nodes.getNode(id);
if (node) {
ctx = node.context();
if (/^subflow:/.test(node.type)) {
ctx = runtime.nodes.getContext(node.id);
} else {
ctx = node.context();
}
}
}
if (ctx) {