From 3b1872dd4c5c5c3fca6c307af6009ff46decd9e3 Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Mon, 28 Aug 2023 13:31:50 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(inputListComponent):=20fix?= =?UTF-8?q?=20type=20error=20when=20value=20is=20a=20string=20by=20convert?= =?UTF-8?q?ing=20it=20to=20an=20array?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/src/components/inputListComponent/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frontend/src/components/inputListComponent/index.tsx b/src/frontend/src/components/inputListComponent/index.tsx index eb8ca2b5f..90920bf39 100644 --- a/src/frontend/src/components/inputListComponent/index.tsx +++ b/src/frontend/src/components/inputListComponent/index.tsx @@ -18,6 +18,8 @@ export default function InputListComponent({ } }, [disabled]); + typeof value === 'string' ? value = [value] : value = value; + return (