From 4a0fe950936432bc3ccb37f274b69dc0d3fa8d8c Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Thu, 27 Jul 2023 09:44:01 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore(types.py):=20add=20support?= =?UTF-8?q?=20for=20custom=20field=20value=20in=20add=5Fnew=5Fcustom=5Ffie?= =?UTF-8?q?ld=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🔧 chore(types.py): add support for custom field value in add_new_custom_field function to allow specifying a default value for the field --- src/backend/langflow/interface/types.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/langflow/interface/types.py b/src/backend/langflow/interface/types.py index 35ecd558b..e68a07b44 100644 --- a/src/backend/langflow/interface/types.py +++ b/src/backend/langflow/interface/types.py @@ -98,6 +98,7 @@ def add_new_custom_field( display_name = field_config.pop("display_name", field_name) field_type = field_config.pop("field_type", field_type) field_type = process_type(field_type) + field_value = field_config.pop("value", field_value) if "name" in field_config: warnings.warn(