Merge pull request #46 from sensebox/slice-empty-sensor

slice first empty option from sensor array
This commit is contained in:
Mario Pesch 2020-12-10 14:53:49 +01:00 committed by GitHub
commit 3d2a18c1db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,6 +138,12 @@ Blockly.Blocks['sensebox_send_to_osem'] = {
}
console.log(dropdown)
}
if (dropdown.length > 1) {
var options = dropdown.slice(1)
return options
} else {
return dropdown
}
}
return dropdown
},