Merge pull request #5071 from node-red/5069-fix-subflow-context-delete

Handle deleting of subflow context entries
This commit is contained in:
Nick O'Leary
2025-03-03 16:43:56 +00:00
committed by GitHub

View File

@@ -241,7 +241,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) {