diff --git a/nodes/core/io/10-mqtt.html b/nodes/core/io/10-mqtt.html index 6179f9b37..03da7c4a4 100644 --- a/nodes/core/io/10-mqtt.html +++ b/nodes/core/io/10-mqtt.html @@ -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},