Merge pull request #2624 from node-red-hitachi/fix-subflow-input

Fix error on empty subflow input types
This commit is contained in:
Nick O'Leary 2020-06-23 16:18:02 +01:00 committed by GitHub
commit f3be5f0e67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1438,7 +1438,8 @@ RED.subflow = (function() {
}).on("change", function(evt,type) {
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);
}
});