diff --git a/src/frontend/src/components/codeTabsComponent/index.tsx b/src/frontend/src/components/codeTabsComponent/index.tsx index adff0bb32..b0326bd30 100644 --- a/src/frontend/src/components/codeTabsComponent/index.tsx +++ b/src/frontend/src/components/codeTabsComponent/index.tsx @@ -682,7 +682,7 @@ export default function CodeTabsComponent({ ) : node.data.node.template[ templateField ].type === "dict" ? ( -
+
{ if (disabled) { @@ -24,7 +25,7 @@ export default function KeypairListComponent({ useEffect(() => { if (JSON.stringify(value) !== JSON.stringify(ref.current)) { ref.current = value; - onChange(value, ref); + onChange(value); } }, [value]); @@ -46,14 +47,14 @@ export default function KeypairListComponent({ return (
1 && editNode ? "my-1" : "", + ref.current?.length > 1 && editNode ? "mx-2 my-1" : "", "flex h-full flex-col gap-3" )} > {ref.current?.map((obj, index) => { return Object.keys(obj).map((key, idx) => { return ( -
+
) : myData.current.node?.template[templateParam] .type === "dict" ? ( -
+
1 + ? "my-3" + : "" + )} + >