feat: enhance flow settings with minimum length validation and default naming (#7970)
* feat: enhance flow settings with minimum length validation and default naming * fix: remove console log from getFlowToAddToCanvas function
This commit is contained in:
parent
409146151c
commit
116bee825c
6 changed files with 51 additions and 13 deletions
|
|
@ -322,6 +322,10 @@ async def update_flow(
|
|||
|
||||
update_data = flow.model_dump(exclude_unset=True, exclude_none=True)
|
||||
|
||||
# Specifically handle endpoint_name when it's explicitly set to null or empty string
|
||||
if flow.endpoint_name is None or flow.endpoint_name == "":
|
||||
update_data["endpoint_name"] = None
|
||||
|
||||
if settings_service.settings.remove_api_keys:
|
||||
update_data = remove_api_keys(update_data)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue