From 09612c82a04772f18c8701a87abdc35813ee9b4d Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 16 Feb 2024 11:00:30 -0300 Subject: [PATCH] Default display_name to None --- src/backend/langflow/interface/custom/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/langflow/interface/custom/utils.py b/src/backend/langflow/interface/custom/utils.py index 8511319c8..ce15768e1 100644 --- a/src/backend/langflow/interface/custom/utils.py +++ b/src/backend/langflow/interface/custom/utils.py @@ -132,7 +132,7 @@ def add_new_custom_field( ): # Check field_config if any of the keys are in it # if it is, update the value - display_name = field_config.pop("display_name", field_name) + display_name = field_config.pop("display_name", None) field_type = field_config.pop("field_type", field_type) field_contains_list = "list" in field_type.lower() field_type = process_type(field_type)