Show subflow flow context under node section of sidebar

This commit is contained in:
Nick O'Leary 2025-01-27 16:36:57 +00:00
parent 21612a5215
commit 43df2318d4
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

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