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:
commit
4a75236e74
@ -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 || {};
|
||||
|
Loading…
Reference in New Issue
Block a user