Merge pull request #3728 from node-red/fix-credential-clear

Do not remove unknown credentials of Subflow Modules
This commit is contained in:
Nick O'Leary
2022-07-04 20:47:04 +01:00
committed by GitHub
2 changed files with 7 additions and 6 deletions

View File

@@ -391,7 +391,6 @@ class Subflow extends Flow {
name = newName;
}
var parent = this.parent;
if (parent) {
var val = parent.getSetting(name);

View File

@@ -373,6 +373,7 @@ var api = module.exports = {
}
}
if (/^subflow(:|$)/.test(nodeType)) {
for (cred in savedCredentials) {
if (savedCredentials.hasOwnProperty(cred)) {
if (!newCreds.hasOwnProperty(cred)) {
@@ -381,6 +382,7 @@ var api = module.exports = {
}
}
}
}
} else {
var dashedType = nodeType.replace(/\s+/g, '-');
var definition = credentialsDef[dashedType];