mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
New config nodes not picking up defaults
This commit is contained in:
parent
87410621c7
commit
a5cf4b17bf
@ -377,6 +377,11 @@ RED.editor = function() {
|
|||||||
_def: node_def,
|
_def: node_def,
|
||||||
type: type
|
type: type
|
||||||
}
|
}
|
||||||
|
for (var d in node_def.defaults) {
|
||||||
|
if (node_def.defaults[d].value) {
|
||||||
|
configNode[d] = node_def.defaults[d].value;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$("#dialog-config-form").html($("script[data-template-name='"+type+"']").html());
|
$("#dialog-config-form").html($("script[data-template-name='"+type+"']").html());
|
||||||
|
Loading…
Reference in New Issue
Block a user