mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
fix numeric status not displaying by ensuring it's a string
This commit is contained in:
parent
23f0cd3a26
commit
e86f6a841a
@ -414,6 +414,12 @@ class Flow {
|
|||||||
reportingNode = node;
|
reportingNode = node;
|
||||||
}
|
}
|
||||||
if (!muteStatusEvent) {
|
if (!muteStatusEvent) {
|
||||||
|
if (statusMessage.hasOwnProperty("text") && typeof(statusMessage.text !== "string")) {
|
||||||
|
try {
|
||||||
|
statusMessage.text = statusMessage.text.toString();
|
||||||
|
}
|
||||||
|
catch(e) {}
|
||||||
|
}
|
||||||
events.emit("node-status",{
|
events.emit("node-status",{
|
||||||
id: node.id,
|
id: node.id,
|
||||||
status:statusMessage
|
status:statusMessage
|
||||||
|
Loading…
Reference in New Issue
Block a user