1
0
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:
Nick O'Leary 2021-07-26 14:50:00 +01:00
parent 064f3eb3bc
commit 735b9c5844
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -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) {