mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #2624 from node-red-hitachi/fix-subflow-input
Fix error on empty subflow input types
This commit is contained in:
commit
f3be5f0e67
@ -1438,7 +1438,8 @@ RED.subflow = (function() {
|
|||||||
|
|
||||||
}).on("change", function(evt,type) {
|
}).on("change", function(evt,type) {
|
||||||
if (ui.type === 'input') {
|
if (ui.type === 'input') {
|
||||||
ui.opts.types = inputCellInput.typedInput('value').split(",");
|
var types = inputCellInput.typedInput('value');
|
||||||
|
ui.opts.types = (types === "") ? ["str"] : types.split(",");
|
||||||
valueField.typedInput('types',ui.opts.types);
|
valueField.typedInput('types',ui.opts.types);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user