diff --git a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx index acf643965..5be56e31c 100644 --- a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx @@ -384,8 +384,9 @@ export default function ParameterComponent({ disabled={disabled} editNode={false} value={ - convertObjToArray(data.node!.template[name].value) ?? - convertObjToArray(dict) + convertObjToArray(data.node!.template[name].value).length === 0 + ? convertObjToArray(dict) + : convertObjToArray(data.node!.template[name].value) } duplicateKey={errorDuplicateKey} onChange={(newValue: string[]) => { diff --git a/src/frontend/src/components/dictComponent/index.tsx b/src/frontend/src/components/dictComponent/index.tsx index d55f194f5..fd55430bb 100644 --- a/src/frontend/src/components/dictComponent/index.tsx +++ b/src/frontend/src/components/dictComponent/index.tsx @@ -33,10 +33,11 @@ export default function DictComponent({ }} > diff --git a/src/frontend/src/components/keypairListComponent/index.tsx b/src/frontend/src/components/keypairListComponent/index.tsx index b88b17946..d555b1ead 100644 --- a/src/frontend/src/components/keypairListComponent/index.tsx +++ b/src/frontend/src/components/keypairListComponent/index.tsx @@ -82,7 +82,6 @@ export default function KeypairListComponent({ return (