diff --git a/app/src/helpers/yunohostArguments.js b/app/src/helpers/yunohostArguments.js index 2e962dc0..e5b01202 100644 --- a/app/src/helpers/yunohostArguments.js +++ b/app/src/helpers/yunohostArguments.js @@ -73,7 +73,7 @@ export function formatYunoHostArgument (arg) { name: 'InputItem', props: defaultProps.concat(['autocomplete', 'trim', 'choices']), callback: function () { - if (arg.choices && arg.choices.length) { + if (arg.choices && Object.keys(arg.choices).length) { arg.type = 'select' this.name = 'SelectItem' }