From dd556c518dc2e58654828f18d3d2a2d138d96967 Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Fri, 15 Sep 2023 08:47:51 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(parameterComponent):=20remov?= =?UTF-8?q?e=20unnecessary=20useEffect=20hook=20that=20sets=20dictArr=20st?= =?UTF-8?q?ate=20=F0=9F=90=9B=20fix(parameterComponent):=20update=20value?= =?UTF-8?q?=20prop=20of=20KeypairListComponent=20to=20use=20convertObjToAr?= =?UTF-8?q?ray(dict)=20instead=20of=20dict?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../GenericNode/components/parameterComponent/index.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx index 0aa2cbf71..56d5562bc 100644 --- a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx @@ -118,10 +118,6 @@ export default function ParameterComponent({ } as {}); const [dictArr, setDictArr] = useState([] as string[]); - useEffect(() => { - setDictArr(convertObjToArray(dict)); - }, [dict]); - useEffect(() => { if (name === "openai_api_base") console.log(info); // @ts-ignore @@ -387,7 +383,7 @@ export default function ParameterComponent({ { setErrorDuplicateKey(hasDuplicateKeys(newValue));