From ddda46f6d6bb0241658f630a154f025451e29b1d Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Sun, 17 Sep 2023 10:31:42 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(parameterComponent):=20conve?= =?UTF-8?q?rt=20object=20to=20array=20in=20data.node!.template[name].value?= =?UTF-8?q?=20to=20fix=20rendering=20issue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../GenericNode/components/parameterComponent/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx index 19916002a..c8cb0194b 100644 --- a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx @@ -27,6 +27,7 @@ import { typesContext } from "../../../../contexts/typesContext"; import { ParameterComponentType } from "../../../../types/components"; import { TabsState } from "../../../../types/tabs"; import { + convertObjToArray, hasDuplicateKeys, isValidConnection, } from "../../../../utils/reactflowUtils"; @@ -384,7 +385,7 @@ export default function ParameterComponent({ data.node!.template[name].value?.length === 0 || !data.node!.template[name].value ? dictArr - : data.node!.template[name].value + : convertObjToArray(data.node!.template[name].value) } duplicateKey={errorDuplicateKey} onChange={(newValue) => {