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

Merge pull request #2286 from node-red-hitachi/fix-subflow-UI-select

Fix subflow UI for select
This commit is contained in:
Nick O'Leary 2019-09-16 15:23:15 +01:00 committed by GitHub
commit 4a75236e74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1360,14 +1360,14 @@ RED.subflow = (function() {
}
function buildEnvUIRow(row, tenv, ui) {
ui.label = ui.label||{};
ui.opts = ui.opts||{};
if (!ui.type) {
ui.type = "input";
ui.opts = {types:['str','num','bool','json','bin','env']}
} else {
ui.opts = ui.opts || {};
if (!ui.opts) {
ui.opts = (ui.type === "select") ? {opts:[]} : {};
}
}
var labels = ui.label || {};