From f6203fe60a407fdcf65e837031ddb27a08ef1e2b Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Mon, 9 Mar 2015 20:42:23 +0000 Subject: [PATCH] Allow a config-node be marked as not required --- public/red/ui/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/red/ui/editor.js b/public/red/ui/editor.js index 7ac951a94..72beb0b35 100644 --- a/public/red/ui/editor.js +++ b/public/red/ui/editor.js @@ -75,7 +75,7 @@ RED.editor = (function() { } if (valid && definition[property].type && RED.nodes.getType(definition[property].type) && !("validate" in definition[property])) { if (!value || value == "_ADD_") { - valid = false; + valid = definition[property].hasOwnProperty("required") && !definition[property].required; } else { var v = RED.nodes.node(value).valid; valid = (v==null || v);