mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Update packages/node_modules/@node-red/nodes/core/network/10-mqtt.js
Co-authored-by: Stephen McLaughlin <44235289+Steve-Mcl@users.noreply.github.com>
This commit is contained in:
parent
7f77a414ec
commit
de0546b251
@ -696,7 +696,7 @@ module.exports = function(RED) {
|
|||||||
// Ensure will payload, if set, is a string
|
// Ensure will payload, if set, is a string
|
||||||
if (node.options.will && Object.hasOwn(node.options.will, 'payload')) {
|
if (node.options.will && Object.hasOwn(node.options.will, 'payload')) {
|
||||||
let payload = node.options.will.payload
|
let payload = node.options.will.payload
|
||||||
if (payload === null || payload === undefined) {
|
if (payload === null || typeof payload === 'undefined') {
|
||||||
payload = "";
|
payload = "";
|
||||||
} else if (!Buffer.isBuffer(payload)) {
|
} else if (!Buffer.isBuffer(payload)) {
|
||||||
if (typeof payload === "object") {
|
if (typeof payload === "object") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user