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

correct "non string" check parenthesis

fixes #3493
This commit is contained in:
Steve-Mcl 2022-04-11 13:57:26 +01:00
parent ae76ff0aaf
commit 21a0b33645

View File

@ -582,7 +582,7 @@ class Flow {
reportingNode = node; reportingNode = node;
} }
if (!muteStatusEvent) { if (!muteStatusEvent) {
if (statusMessage.hasOwnProperty("text") && typeof(statusMessage.text !== "string")) { if (statusMessage.hasOwnProperty("text") && typeof statusMessage.text !== "string") {
try { try {
statusMessage.text = statusMessage.text.toString(); statusMessage.text = statusMessage.text.toString();
} }