🐛 fix(parameterComponent): remove console.log statement to clean up code

🔥 chore(keypairListComponent): remove unused useEffect hook to improve code readability
This commit is contained in:
Cristhian Zanforlin Lousa 2023-09-27 14:34:58 -03:00
commit 3e3579d4c6
2 changed files with 2 additions and 4 deletions

View file

@ -88,6 +88,8 @@ export default function ParameterComponent({
const handleOnNewValue = ( const handleOnNewValue = (
newValue: string | string[] | boolean | Object[] newValue: string | string[] | boolean | Object[]
): void => { ): void => {
console.log(newValue);
let newData = cloneDeep(data); let newData = cloneDeep(data);
newData.node!.template[name].value = newValue; newData.node!.template[name].value = newValue;
setData(newData); setData(newData);

View file

@ -34,10 +34,6 @@ export default function KeypairListComponent({
onChange(newInputList); onChange(newInputList);
}; };
useEffect(() => {
if (value) onChange(value);
}, [value]);
return ( return (
<div <div
className={classNames( className={classNames(