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

Merge pull request #1475 from thiagobustamante/patch-1

Fix #1456
This commit is contained in:
Nick O'Leary 2018-01-23 23:12:16 +00:00 committed by GitHub
commit 7ad2192df8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -872,7 +872,7 @@ RED.nodes = (function() {
}
if (!existingConfigNode) { //} || !compareNodes(existingConfigNode,n,true) || existingConfigNode._def.exclusive || existingConfigNode.z !== n.z) {
if (!existingConfigNode || existingConfigNode._def.exclusive) { //} || !compareNodes(existingConfigNode,n,true) || existingConfigNode.z !== n.z) {
configNode = {id:n.id, z:n.z, type:n.type, users:[], _config:{}};
for (d in def.defaults) {
if (def.defaults.hasOwnProperty(d)) {