fix: ensure we don't have a nested array-like object with the data
This commit is contained in:
parent
f85bd2b728
commit
a91b58924b
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue