From dc9f331754e06791dd01d54e52f2747ea2237f88 Mon Sep 17 00:00:00 2001 From: Tagada <36127788+Tagadda@users.noreply.github.com> Date: Mon, 15 Aug 2022 20:12:26 +0200 Subject: [PATCH] [fix] dirty fix when there's choices and the type is string --- app/src/helpers/yunohostArguments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' }