mirror of
https://github.com/node-red/node-red
synced 2024-11-21 07:33:58 +00:00
Update packages/node_modules/@node-red/nodes/core/network/10-mqtt.js
Co-authored-by: Nick O'Leary <nick.oleary@gmail.com>
This commit is contained in:
parent
21832a0bd0
commit
d50ccea017
@ -161,12 +161,12 @@ module.exports = function(RED) {
|
||||
if(typeof val === "string") {
|
||||
count++;
|
||||
_clone[key] = val;
|
||||
} else {
|
||||
count++;
|
||||
} else if (val !== undefined && val !== null) {
|
||||
try {
|
||||
_clone[key] = JSON.stringify(val)
|
||||
count++;
|
||||
} catch (err) {
|
||||
console.log('MQTT v5 Property value can not be converted to a String')
|
||||
// Silently drop property
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user