fix: reverse array before popping to get the 1st element
This commit is contained in:
parent
a91b58924b
commit
17c3addeb2
|
@ -39,7 +39,7 @@ export function optionsToConfig(
|
||||||
...acc,
|
...acc,
|
||||||
...val,
|
...val,
|
||||||
};
|
};
|
||||||
}, options)).pop();
|
}, options)).reverse().pop();
|
||||||
|
|
||||||
const finalOptions = {
|
const finalOptions = {
|
||||||
...def,
|
...def,
|
||||||
|
|
Loading…
Reference in New Issue