From dc3db7ce78bb516d2db49185001c1b0aab4ba40e Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Mon, 28 Aug 2023 13:59:01 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore(inputListComponent):=20add?= =?UTF-8?q?=20TODO=20comment=20for=20handling=20conversion=20from=20string?= =?UTF-8?q?=20to=20array=20format?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🔧 chore(inputListComponent): add recursive character text splitter to handle conversion from string to array format --- src/frontend/src/components/inputListComponent/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/components/inputListComponent/index.tsx b/src/frontend/src/components/inputListComponent/index.tsx index 105ba4c3c..a1f58789f 100644 --- a/src/frontend/src/components/inputListComponent/index.tsx +++ b/src/frontend/src/components/inputListComponent/index.tsx @@ -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 (