From 93de968cf1ff1316c4124492255213639789b5aa Mon Sep 17 00:00:00 2001 From: Gabriel Almeida Date: Tue, 28 Mar 2023 21:12:03 -0300 Subject: [PATCH] fix: added code type to default types --- src/backend/langflow/graph/graph.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/backend/langflow/graph/graph.py b/src/backend/langflow/graph/graph.py index e6960f772..83d011565 100644 --- a/src/backend/langflow/graph/graph.py +++ b/src/backend/langflow/graph/graph.py @@ -69,7 +69,9 @@ class Node: for key, value in template_dict.items(): if key == "_type": continue - if value["type"] not in ["str", "bool"]: + # If the type is not transformable to a python base class + # then we need to get the edge that connects to this node + if value["type"] not in ["str", "bool", "code"]: # Get the edge that connects to this node edge = next( (