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;
|
config.baseURL = client.portalUrl;
|
||||||
|
|
||||||
const extraOptions = options.reduce((acc, val) => {
|
const extraOptions= Object.values(options.reduce((acc, val) => {
|
||||||
return {
|
return {
|
||||||
...acc,
|
...acc,
|
||||||
...val,
|
...val,
|
||||||
};
|
};
|
||||||
}, options);
|
}, options)).pop();
|
||||||
|
|
||||||
const finalOptions = {
|
const finalOptions = {
|
||||||
...def,
|
...def,
|
||||||
|
|
Loading…
Reference in New Issue