🐛 fix(inputListComponent): convert value to an array when it's a string to avoid errors in InputListComponent

This commit is contained in:
Cristhian Zanforlin Lousa 2023-08-28 13:51:42 -03:00
commit 517816bd3b

View file

@ -18,6 +18,7 @@ export default function InputListComponent({
}
}, [disabled]);
//Sometimes value is a string, but the InputListComponent expects an array, so we need to convert it when it's a string to an array with the string inside it to avoid errors
typeof value === 'string' ? value = [value] : value = value;
return (