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:
Zamil Majdy
2026-02-11 06:41:41 +04:00
parent 23f092d65c
commit ade1072e4a

View File

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