mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Merge pull request #2286 from node-red-hitachi/fix-subflow-UI-select
Fix subflow UI for select
This commit is contained in:
		@@ -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 || {};
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user