🐛 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:
parent
7d6f7f1e5e
commit
3e3579d4c6
2 changed files with 2 additions and 4 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue