1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Handle importing old mqtt-broker configs that lack properties

This commit is contained in:
Nick O'Leary 2016-07-27 23:05:48 +01:00
parent d6b326c134
commit 7f63ddc9ea

View File

@ -247,9 +247,9 @@
clientid: {value:"", validate: function(v) {
if ($("#node-config-input-clientid").length) {
// Currently editing the node
return $("#node-config-input-cleansession").is(":checked") || v.length > 0;
return $("#node-config-input-cleansession").is(":checked") || (v||"").length > 0;
} else {
return this.cleansession || v.length > 0;
return (this.cleansession===undefined || this.cleansession) || (v||"").length > 0;
}
}},
usetls: {value: false},