*Merge arrays with splat, don't push

This commit is contained in:
Derrick Hammer 2022-09-21 17:28:16 -04:00
parent 7483aafb46
commit 438c3df467
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 3 deletions

View File

@ -157,9 +157,7 @@ export default class Config {
switch (value) {
case Array.isArray(value):
let newVal = this.array(key) ?? [];
newVal.push(value);
this.set(key, newVal);
this.set(key, [...(this.array(key) ?? []), ...value]);
break;
default:
this.set(key, value);