From 517816bd3bac0c69c75d2f986d2055c883215cdd Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Mon, 28 Aug 2023 13:51:42 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(inputListComponent):=20conve?= =?UTF-8?q?rt=20value=20to=20an=20array=20when=20it's=20a=20string=20to=20?= =?UTF-8?q?avoid=20errors=20in=20InputListComponent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/src/components/inputListComponent/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontend/src/components/inputListComponent/index.tsx b/src/frontend/src/components/inputListComponent/index.tsx index 90920bf39..37d5c6e7f 100644 --- a/src/frontend/src/components/inputListComponent/index.tsx +++ b/src/frontend/src/components/inputListComponent/index.tsx @@ -18,6 +18,7 @@ export default function InputListComponent({ } }, [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; return (