mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Preserve node properties on import
This commit is contained in:
parent
819e48b03a
commit
1b06afb81c
@ -847,9 +847,7 @@ RED.nodes = (function() {
|
|||||||
node.outputs = n.outputs||node._def.outputs;
|
node.outputs = n.outputs||node._def.outputs;
|
||||||
for (var d2 in node._def.defaults) {
|
for (var d2 in node._def.defaults) {
|
||||||
if (node._def.defaults.hasOwnProperty(d2)) {
|
if (node._def.defaults.hasOwnProperty(d2)) {
|
||||||
if (node._def.defaults[d2].type) {
|
node[d2] = n[d2];
|
||||||
node[d2] = n[d2];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user