mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Handle subflow modules that contain subflows
This commit is contained in:
@@ -343,7 +343,11 @@ var api = module.exports = {
|
||||
if (newCreds) {
|
||||
delete node.credentials;
|
||||
var savedCredentials = credentialCache[nodeID] || {};
|
||||
if (/^subflow(:|$)/.test(nodeType)) {
|
||||
// Need to check the type of constructor for this node.
|
||||
// - Function : regular node
|
||||
// - !Function: subflow module
|
||||
|
||||
if (/^subflow(:|$)/.test(nodeType) || typeof runtime.nodes.getType(nodeType) !== 'function') {
|
||||
for (cred in newCreds) {
|
||||
if (newCreds.hasOwnProperty(cred)) {
|
||||
if (newCreds[cred] === "__PWRD__") {
|
||||
|
Reference in New Issue
Block a user