From 9e4f30f77447b825ccece696c3093af12da3d64e Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Thu, 14 Sep 2023 14:32:11 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=80=20refactor(parameterComponent):=20?= =?UTF-8?q?remove=20initial=20values=20from=20dict=20state=20and=20dictArr?= =?UTF-8?q?=20state=20to=20improve=20code=20readability=20and=20maintainab?= =?UTF-8?q?ility?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../GenericNode/components/parameterComponent/index.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx index 50f14f7b4..e25dda62b 100644 --- a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx @@ -115,14 +115,7 @@ export default function ParameterComponent({ }); const [errorDuplicateKey, setErrorDuplicateKey] = useState(false); - const [dict, setDict] = useState({ - key1: "value1", - key2: "value2", - key3: "value3", - key4: "value4", - key5: "value5", - key6: "value6", - } as {}); + const [dict, setDict] = useState({} as {}); const [dictArr, setDictArr] = useState([] as string[]); useEffect(() => {