Merge pull request #4802 from node-red/4801-fix-sf-instance-credentials

Ensure subflow instance credential property values are extracted
This commit is contained in:
Nick O'Leary 2024-06-26 11:57:31 +01:00 committed by GitHub
commit 52bbd82e18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1100,7 +1100,7 @@ RED.subflow = (function() {
input.val(val.value);
break;
case "cred":
input = $('<input type="password">').css('width','70%').appendTo(row);
input = $('<input type="password">').css('width','70%').attr('id', elId).appendTo(row);
if (node.credentials) {
if (node.credentials[tenv.name]) {
input.val(node.credentials[tenv.name]);
@ -1346,7 +1346,7 @@ RED.subflow = (function() {
}
break;
case "cred":
item.value = input.val();
item.value = input.typedInput('value');
item.type = 'cred';
break;
case "spinner":