mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-25 18:34:07 +08:00
🔧 chore(types.py): add support for custom field value in add_new_custom_field function
🔧 chore(types.py): add support for custom field value in add_new_custom_field function to allow specifying a default value for the field
This commit is contained in:
@ -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(
|
||||
|
||||
Reference in New Issue
Block a user