mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #3728 from node-red/fix-credential-clear
Do not remove unknown credentials of Subflow Modules
This commit is contained in:
commit
18acd67b4f
@ -391,7 +391,6 @@ class Subflow extends Flow {
|
|||||||
name = newName;
|
name = newName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var parent = this.parent;
|
var parent = this.parent;
|
||||||
if (parent) {
|
if (parent) {
|
||||||
var val = parent.getSetting(name);
|
var val = parent.getSetting(name);
|
||||||
|
@ -373,11 +373,13 @@ var api = module.exports = {
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (cred in savedCredentials) {
|
if (/^subflow(:|$)/.test(nodeType)) {
|
||||||
if (savedCredentials.hasOwnProperty(cred)) {
|
for (cred in savedCredentials) {
|
||||||
if (!newCreds.hasOwnProperty(cred)) {
|
if (savedCredentials.hasOwnProperty(cred)) {
|
||||||
delete savedCredentials[cred];
|
if (!newCreds.hasOwnProperty(cred)) {
|
||||||
dirty = true;
|
delete savedCredentials[cred];
|
||||||
|
dirty = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user