diff --git a/src/utils/options.ts b/src/utils/options.ts index 469058f..5688274 100644 --- a/src/utils/options.ts +++ b/src/utils/options.ts @@ -34,12 +34,12 @@ export function optionsToConfig( config.baseURL = client.portalUrl; - const extraOptions = options.reduce((acc, val) => { + const extraOptions= Object.values(options.reduce((acc, val) => { return { ...acc, ...val, }; - }, options); + }, options)).pop(); const finalOptions = { ...def,