*Switch case needs to be on true not the value

This commit is contained in:
Derrick Hammer 2022-09-21 17:36:30 -04:00
parent 3a030e051b
commit c416218d88
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ export default class Config {
for (const key of Object.keys(json)) { for (const key of Object.keys(json)) {
const value = json[key]; const value = json[key];
switch (value) { switch (true) {
case Array.isArray(value): case Array.isArray(value):
this.set(key, [...(this.array(key) ?? []), ...value]); this.set(key, [...(this.array(key) ?? []), ...value]);
break; break;