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.
This commit is contained in:
anovazzi1 2023-10-06 16:03:26 -03:00
commit 1eca5bd40a

View file

@ -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
) {