diff --git a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx index 548c90180..19916002a 100644 --- a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx @@ -389,12 +389,8 @@ export default function ParameterComponent({ duplicateKey={errorDuplicateKey} onChange={(newValue) => { setErrorDuplicateKey(hasDuplicateKeys(newValue)); - if (hasDuplicateKeys(newValue)) { - setDictArr(newValue); - } else { - setDictArr(newValue); - data.node!.template[name].value = newValue; - } + setDictArr(newValue); + data.node!.template[name].value = newValue; }} />