*Switch case needs to be on true not the value
This commit is contained in:
parent
3a030e051b
commit
c416218d88
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue