mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Fix empty item handling for subflows/config in outliner
This commit is contained in:
		| @@ -22,14 +22,19 @@ RED.sidebar.info.outliner = (function() { | ||||
|             { | ||||
|                 id: "__subflow__", | ||||
|                 label: RED._("menu.label.subflows"), | ||||
|                 children: [] | ||||
|                 children: [ | ||||
|                     getEmptyItem("__subflow__") | ||||
|                 ] | ||||
|             }, | ||||
|             { | ||||
|                 id: "__global__", | ||||
|                 label: RED._("sidebar.info.globalConfig"), | ||||
|                 children: [] | ||||
|                 children: [ | ||||
|                     getEmptyItem("__global__") | ||||
|                 ] | ||||
|             } | ||||
|         ] | ||||
|  | ||||
|         flowList = flowData[0]; | ||||
|         subflowList = flowData[1]; | ||||
|         globalConfigNodes = flowData[2]; | ||||
| @@ -273,9 +278,6 @@ RED.sidebar.info.outliner = (function() { | ||||
|             } | ||||
|         }) | ||||
|  | ||||
|         subflowList.treeList.addChild(getEmptyItem("__subflow__")); | ||||
|         globalConfigNodes.treeList.addChild(getEmptyItem("__global__")); | ||||
|  | ||||
|         RED.events.on("projects:load", onProjectLoad) | ||||
|  | ||||
|         RED.events.on("flows:add", onFlowAdd) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user