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:
parent
74adc58370
commit
63e70a54e9
7 changed files with 52 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