🔧 chore(inputListComponent): add TODO comment for handling conversion from string to array format
🔧 chore(inputListComponent): add recursive character text splitter to handle conversion from string to array format
This commit is contained in:
parent
c6f6e2008e
commit
dc3db7ce78
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ export default function InputListComponent({
|
|||
}
|
||||
}, [disabled]);
|
||||
|
||||
// In certain cases, 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.
|
||||
// @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 (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue