mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Merge pull request #460 from YunoHost/fix-app-install
[fix] App install is broken when there's choices and the type is string
This commit is contained in:
commit
90c6adffd3
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 && arg.choices.length) {
|
if (arg.choices && Object.keys(arg.choices).length) {
|
||||||
arg.type = 'select'
|
arg.type = 'select'
|
||||||
this.name = 'SelectItem'
|
this.name = 'SelectItem'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue