1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Ensure node.outputs is always a number

Closes #686
This commit is contained in:
Nick O'Leary 2015-06-19 20:37:12 +01:00
parent 0e12fc6b02
commit 6d897793cb

View File

@ -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 = "";