fix: edit flow name settings not to be empty (#8020)

* Revert "feat: enhance flow settings with minimum length validation and default naming (#7970)"

This reverts commit 116bee825c.

* 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

* test: add delay before filling flow name input to ensure stability

---------

Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
This commit is contained in:
Deon Sanchez 2025-05-13 11:38:40 -07:00 committed by GitHub
commit 63e70a54e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 52 additions and 13 deletions

View file

@ -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)