🔧 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:
Cristhian Zanforlin Lousa 2023-08-28 13:59:01 -03:00
commit dc3db7ce78

View file

@ -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 (