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
@ -409,6 +409,8 @@ RED.editor = (function() {
|
|||||||
var changed = false;
|
var changed = false;
|
||||||
if (!node.credentials) {
|
if (!node.credentials) {
|
||||||
node.credentials = {_:{}};
|
node.credentials = {_:{}};
|
||||||
|
} else if (!node.credentials._) {
|
||||||
|
node.credentials._ = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var cred in credDefinition) {
|
for (var cred in credDefinition) {
|
||||||
|
Loading…
Reference in New Issue
Block a user