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

Fix exclusive config node check when type not registered

This commit is contained in:
Nick O'Leary 2015-07-15 13:23:05 +01:00
parent 50788af6ca
commit 5462e251f8
2 changed files with 2 additions and 2 deletions

View File

@ -521,7 +521,7 @@ RED.editor = (function() {
if (definition.defaults.hasOwnProperty(d)) { if (definition.defaults.hasOwnProperty(d)) {
if (definition.defaults[d].type) { if (definition.defaults[d].type) {
var configTypeDef = RED.nodes.getType(definition.defaults[d].type); var configTypeDef = RED.nodes.getType(definition.defaults[d].type);
if (configTypeDef.exclusive) { if (configTypeDef && configTypeDef.exclusive) {
prepareConfigNodeButton(node,d,definition.defaults[d].type); prepareConfigNodeButton(node,d,definition.defaults[d].type);
} else { } else {
prepareConfigNodeSelect(node,d,definition.defaults[d].type); prepareConfigNodeSelect(node,d,definition.defaults[d].type);

View File

@ -1,6 +1,6 @@
{ {
"name" : "node-red", "name" : "node-red",
"version" : "0.11.0", "version" : "0.11.1",
"description" : "A visual tool for wiring the Internet of Things", "description" : "A visual tool for wiring the Internet of Things",
"homepage" : "http://nodered.org", "homepage" : "http://nodered.org",
"license" : "Apache-2.0", "license" : "Apache-2.0",