diff --git a/packages/node_modules/@node-red/nodes/core/network/10-mqtt.html b/packages/node_modules/@node-red/nodes/core/network/10-mqtt.html index 5b1b1f799..009076cf9 100644 --- a/packages/node_modules/@node-red/nodes/core/network/10-mqtt.html +++ b/packages/node_modules/@node-red/nodes/core/network/10-mqtt.html @@ -653,7 +653,7 @@ this.protocolVersion = 4; } $("#node-config-input-cleansession").on("change", function() { - var useCleanSession = $("#node-config-input-cleansession").is(':checked'); + const useCleanSession = $("#node-config-input-cleansession").is(':checked'); if(useCleanSession) { $("div.form-row.mqtt-persistence").hide(); } else {