temp fix for string ynh args having empty "choices" property

This commit is contained in:
axolotle 2022-01-31 15:36:25 +01:00
parent 5ae814c616
commit 14194c90d5

View file

@ -73,7 +73,7 @@ export function formatYunoHostArgument (arg) {
name: 'InputItem',
props: defaultProps.concat(['autocomplete', 'trim', 'choices']),
callback: function () {
if (arg.choices) {
if (arg.choices && arg.choices.length) {
arg.type = 'select'
this.name = 'SelectItem'
}