diff --git a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx index aadc0c6e6..2c94aa205 100644 --- a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx @@ -98,7 +98,6 @@ export default function ParameterComponent({ const groupedObj = groupByFamily(myData, tooltipTitle, left, data.type); refNumberComponents.current = groupedObj[0]?.type?.length; - console.log(refNumberComponents); refHtml.current = groupedObj.map((item, i) => { const Icon: any = nodeIconsLucide[item.family]; diff --git a/src/frontend/src/modals/EditNodeModal/index.tsx b/src/frontend/src/modals/EditNodeModal/index.tsx index a343bc09b..25e76eaa2 100644 --- a/src/frontend/src/modals/EditNodeModal/index.tsx +++ b/src/frontend/src/modals/EditNodeModal/index.tsx @@ -72,15 +72,16 @@ export default function EditNodeModal({ data }: { data: NodeDataType }) { } } - function changeAdvanced(node): void { - Object.keys(data.node.template).filter((n, i) => { + function changeAdvanced(node) { + Object.keys(data.node.template).map((n, i) => { if (n === node.name) { data.node.template[n].advanced = !data.node.template[n].advanced; } - return true; + return n; }); setNodeValue(!nodeValue); } + const handleOnNewValue = (newValue: any, name) => { data.node.template[name].value = newValue;