mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Handle just-copied-but-not-deployed node with credentials in editor
Fixes #3090
This commit is contained in:
parent
064f3eb3bc
commit
735b9c5844
@ -407,8 +407,10 @@ RED.editor = (function() {
|
||||
*/
|
||||
function updateNodeCredentials(node, credDefinition, prefix) {
|
||||
var changed = false;
|
||||
if(!node.credentials) {
|
||||
if (!node.credentials) {
|
||||
node.credentials = {_:{}};
|
||||
} else if (!node.credentials._) {
|
||||
node.credentials._ = {};
|
||||
}
|
||||
|
||||
for (var cred in credDefinition) {
|
||||
|
Loading…
Reference in New Issue
Block a user