From 6d897793cb3af0eb47908729d4fd810b5af8633d Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Fri, 19 Jun 2015 20:37:12 +0100 Subject: [PATCH] Ensure node.outputs is always a number Closes #686 --- editor/js/ui/editor.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/js/ui/editor.js b/editor/js/ui/editor.js index 3a948e268..1a41fcd33 100644 --- a/editor/js/ui/editor.js +++ b/editor/js/ui/editor.js @@ -231,6 +231,9 @@ RED.editor = (function() { } if (newValue != null) { if (editing_node[d] != newValue) { + if (d === "outputs" && (newValue.trim() === "" || isNaN(newValue))) { + continue; + } if (editing_node._def.defaults[d].type) { if (newValue == "_ADD_") { newValue = "";