diff --git a/agenta-web/src/lib/services/api.ts b/agenta-web/src/lib/services/api.ts index 343053d0a6..cdba47bf3c 100644 --- a/agenta-web/src/lib/services/api.ts +++ b/agenta-web/src/lib/services/api.ts @@ -103,11 +103,9 @@ export async function callVariant( mainInputParams[key] = inputParametersDict[key] } } - optionalParameters = optionalParameters || [] const optParams = optionalParameters - .filter((param) => param.default) .filter((param) => param.type !== "object") // remove dicts from optional parameters .reduce((acc: any, param) => { acc[param.name] = param.default