diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/subflow.js b/packages/node_modules/@node-red/editor-client/src/js/ui/subflow.js index dbed4d6ba..5ea39be6a 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/subflow.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/subflow.js @@ -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 || {};