Merge pull request #5018 from node-red/fix-debug-status-if-null

fix debug status reporting if null
This commit is contained in:
Nick O'Leary
2025-01-20 11:32:43 +00:00
committed by GitHub

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;