fix debug status reporting if null

pull/5018/head
Dave Conway-Jones 2025-01-19 10:57:58 +00:00
parent aa1d5ad06b
commit 1acc16c9ef
No known key found for this signature in database
GPG Key ID: 1DDB0E91A28C2643
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ module.exports = function(RED) {
var st = (typeof output === 'string') ? output : util.inspect(output);
var fill = "grey";
var shape = "dot";
if (typeof output === 'object' && hasOwnProperty.call(output, "fill") && hasOwnProperty.call(output, "shape") && hasOwnProperty.call(output, "text")) {
if (typeof output === 'object' && output?.fill && output?.shape && output?.text) {
fill = output.fill;
shape = output.shape;
st = output.text;