From cc1662ab5cfb27a7bb056edcf26ae641788f8e8d Mon Sep 17 00:00:00 2001 From: Kazuhito Yokoi Date: Sun, 4 Jan 2026 16:17:16 +0900 Subject: [PATCH] Fix status node to retrieve status from all nodes --- .../@node-red/nodes/core/common/25-status.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/node_modules/@node-red/nodes/core/common/25-status.js b/packages/node_modules/@node-red/nodes/core/common/25-status.js index 8c56e2030..c494883b7 100644 --- a/packages/node_modules/@node-red/nodes/core/common/25-status.js +++ b/packages/node_modules/@node-red/nodes/core/common/25-status.js @@ -20,13 +20,15 @@ module.exports = function(RED) { function StatusNode(n) { RED.nodes.createNode(this,n); var node = this; - this.scope = n.scope || []; + this.scope = n.scope; // auto-filter out any directly connected nodes to avoid simple loopback - const w = this.wires.flat(); - for (let i=0; i < this.scope.length; i++) { - if (w.includes(this.scope[i])) { - this.scope.splice(i, 1); + if (Array.isArray(this.scope)) { + const w = this.wires.flat(); + for (let i = 0; i < this.scope.length; i++) { + if (w.includes(this.scope[i])) { + this.scope.splice(i, 1); + } } }