Bugfix - InputListComponent expect an array as Input() (#830)
This commit is contained in:
commit
8f27c71553
1 changed files with 3 additions and 0 deletions
|
|
@ -18,6 +18,9 @@ export default function InputListComponent({
|
|||
}
|
||||
}, [disabled]);
|
||||
|
||||
// @TODO Recursive Character Text Splitter - the value might be in string format, whereas the InputListComponent specifically requires an array format. To ensure smooth operation and prevent potential errors, it's crucial that we handle the conversion from a string to an array with the string as its element.
|
||||
typeof value === 'string' ? value = [value] : value = value;
|
||||
|
||||
return (
|
||||
<div
|
||||
className={classNames(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue