mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-10 23:05:17 -05:00
fix(backend/executor): Nullify credentials when deleted instead of using field default
When a configured credential is deleted, set input_data to None (consistent
with the "no credentials" path at line 279) instead of the field's raw
default value ({}), which would fail CredentialsMetaInput validation.
This commit is contained in:
@@ -295,7 +295,7 @@ async def execute_node(
|
||||
f"Credentials #{credentials_meta.id} not found, "
|
||||
"running without (field has default)"
|
||||
)
|
||||
input_data[field_name] = input_model.model_fields[field_name].default
|
||||
input_data[field_name] = None
|
||||
continue
|
||||
raise
|
||||
creds_locks.append(lock)
|
||||
|
||||
Reference in New Issue
Block a user