Merge pull request #3243 from node-red/delete-global-context

Clear context contents when switching projects
This commit is contained in:
Nick O'Leary
2022-01-26 11:28:34 +00:00
committed by GitHub
8 changed files with 136 additions and 29 deletions

View File

@@ -122,6 +122,7 @@ module.exports = {
}
if (req.body.active) {
opts.clearContext = req.body.hasOwnProperty('clearContext')?req.body.clearContext:true
runtimeAPI.projects.setActiveProject(opts).then(function() {
listProjects(req,res);
}).catch(function(err) {