Update packages/node_modules/@node-red/editor-client/src/js/nodes.js

This commit is contained in:
Nick O'Leary
2024-12-03 14:51:32 +00:00
committed by GitHub
parent 6194285b6e
commit 0b09cf5fa9

View File

@@ -2336,7 +2336,7 @@ RED.nodes = (function() {
// The node declares outputs in its defaults, but has not got a valid value
// Defer to the length of the wires array
if (node.hasOwnProperty('wires'))
if (node.hasOwnProperty('wires')) {
if (isNaN(node.outputs)) {
node.outputs = node.wires.length;
} else if (node.wires.length > node.outputs) {