From 3e3579d4c69890f0ce6a93d810dfd281cb64c0d4 Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Wed, 27 Sep 2023 14:34:58 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(parameterComponent):=20remov?= =?UTF-8?q?e=20console.log=20statement=20to=20clean=20up=20code=20?= =?UTF-8?q?=F0=9F=94=A5=20chore(keypairListComponent):=20remove=20unused?= =?UTF-8?q?=20useEffect=20hook=20to=20improve=20code=20readability?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../GenericNode/components/parameterComponent/index.tsx | 2 ++ src/frontend/src/components/keypairListComponent/index.tsx | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx index 6968d6472..5c4e7ca30 100644 --- a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx @@ -88,6 +88,8 @@ export default function ParameterComponent({ const handleOnNewValue = ( newValue: string | string[] | boolean | Object[] ): void => { + console.log(newValue); + let newData = cloneDeep(data); newData.node!.template[name].value = newValue; setData(newData); diff --git a/src/frontend/src/components/keypairListComponent/index.tsx b/src/frontend/src/components/keypairListComponent/index.tsx index ec8d6bf64..a2ef4f26c 100644 --- a/src/frontend/src/components/keypairListComponent/index.tsx +++ b/src/frontend/src/components/keypairListComponent/index.tsx @@ -34,10 +34,6 @@ export default function KeypairListComponent({ onChange(newInputList); }; - useEffect(() => { - if (value) onChange(value); - }, [value]); - return (