Skip to content
Extraits de code Groupes Projets
Valider f9dd0a0c rédigé par Will Hunt's avatar Will Hunt
Parcourir les fichiers

Fix issue where we failed to apply array config values

parent ce72760a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -14,7 +14,8 @@ export class DiscordBridgeConfig { ...@@ -14,7 +14,8 @@ export class DiscordBridgeConfig {
*/ */
public ApplyConfig(newConfig: {[key: string]: any}, configLayer: any = this) { public ApplyConfig(newConfig: {[key: string]: any}, configLayer: any = this) {
Object.keys(newConfig).forEach((key) => { Object.keys(newConfig).forEach((key) => {
if (typeof(configLayer[key]) === "object") { if ( typeof(configLayer[key]) === "object" &&
!Array.isArray(configLayer[key])) {
this.ApplyConfig(newConfig[key], this[key]); this.ApplyConfig(newConfig[key], this[key]);
return; return;
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter