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

fix: ensure mqtt v5 props can be set false

fixes #3471
This commit is contained in:
Steve-Mcl 2022-03-05 11:24:25 +00:00
parent fdb868516f
commit 10b18de3e0

View File

@ -103,7 +103,7 @@ module.exports = function(RED) {
if(src[propName] === "true" || src[propName] === true) {
dst[propName] = true;
} else if(src[propName] === "false" || src[propName] === false) {
dst[propName] = true;
dst[propName] = false;
}
} else {
if(def != undefined) dst[propName] = def;