slice first empty option from sensor array
This commit is contained in:
		
							parent
							
								
									3655063eaa
								
							
						
					
					
						commit
						ac127dcca2
					
				| @ -138,6 +138,12 @@ Blockly.Blocks['sensebox_send_to_osem'] = { | |||||||
|                 } |                 } | ||||||
|                 console.log(dropdown) |                 console.log(dropdown) | ||||||
|             } |             } | ||||||
|  |             if (dropdown.length > 1) { | ||||||
|  |                 var options = dropdown.slice(1) | ||||||
|  |                 return options | ||||||
|  |             } else { | ||||||
|  |                 return dropdown | ||||||
|  |             } | ||||||
|         } |         } | ||||||
|         return dropdown |         return dropdown | ||||||
|     }, |     }, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user