🐛 fix(inputListComponent): convert value to an array when it's a string to avoid errors in InputListComponent
This commit is contained in:
parent
3b1872dd4c
commit
517816bd3b
1 changed files with 1 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ export default function InputListComponent({
|
||||||
}
|
}
|
||||||
}, [disabled]);
|
}, [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;
|
typeof value === 'string' ? value = [value] : value = value;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue