mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
temp fix for string ynh args having empty "choices" property
This commit is contained in:
parent
5ae814c616
commit
14194c90d5
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ export function formatYunoHostArgument (arg) {
|
||||||
name: 'InputItem',
|
name: 'InputItem',
|
||||||
props: defaultProps.concat(['autocomplete', 'trim', 'choices']),
|
props: defaultProps.concat(['autocomplete', 'trim', 'choices']),
|
||||||
callback: function () {
|
callback: function () {
|
||||||
if (arg.choices) {
|
if (arg.choices && arg.choices.length) {
|
||||||
arg.type = 'select'
|
arg.type = 'select'
|
||||||
this.name = 'SelectItem'
|
this.name = 'SelectItem'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue