[fix] FormItem select as default for args with "choice"

This commit is contained in:
axolotle 2022-11-15 12:41:36 +01:00
parent ad656b925f
commit 1007c1ee57

View file

@ -262,8 +262,11 @@ export function formatYunoHostArgument (arg) {
]
// Default type management if no one is filled
if (arg.choices && arg.choices.length) {
arg.type = 'select'
}
if (arg.type === undefined) {
arg.type = arg.choices && arg.choices.length ? 'select' : 'string'
arg.type = 'string'
}
// Search the component bind to the type