diff --git a/src/api/APIModel.ts b/src/api/APIModel.ts index 90bbe22..1dc05da 100644 --- a/src/api/APIModel.ts +++ b/src/api/APIModel.ts @@ -19,7 +19,7 @@ export abstract class APIModel { abstract getById(id: string): Promise; hasType(type: MediaType): boolean { - if (this.types.contains(type) && !(this.plugin.settings[[this.apiName, type.toString()].filter(s => s).join('') as keyof typeof this.plugin.settings] === false)){ + if (this.types.contains(type) && !(this.plugin.settings[[this.apiName, type].filter(s => s).join('') as keyof typeof this.plugin.settings] === false)){ return true; } }