From 1eca5bd40abf4bd39c8cf47800f2a96940b558c6 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Fri, 6 Oct 2023 16:03:26 -0300 Subject: [PATCH] fix(reactflowUtils.ts): add support for "dict" and "NestedDict" types in updateGroupNodeTemplate function The updateGroupNodeTemplate function was updated to include support for the "dict" and "NestedDict" types. This allows the function to properly handle these types when checking if they are required or not. --- src/frontend/src/utils/reactflowUtils.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frontend/src/utils/reactflowUtils.ts b/src/frontend/src/utils/reactflowUtils.ts index 369ab9d22..943292884 100644 --- a/src/frontend/src/utils/reactflowUtils.ts +++ b/src/frontend/src/utils/reactflowUtils.ts @@ -640,7 +640,9 @@ function updateGroupNodeTemplate(template: APITemplateType) { type === "code" || type === "prompt" || type === "file" || - type === "int") && + type === "int" || + type === "dict" || + type === "NestedDict") && !template[key].required && !input_types ) {