We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b35e55 commit 0634e39Copy full SHA for 0634e39
src/api/APIModel.ts
@@ -19,7 +19,7 @@ export abstract class APIModel {
19
abstract getById(id: string): Promise<MediaTypeModel>;
20
21
hasType(type: MediaType): boolean {
22
- 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)){
23
return true;
24
}
25
0 commit comments