mirror of
https://github.com/node-red/node-red.git
synced 2025-12-27 07:31:07 +01:00
Handle deleting of subflow context entries
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user