File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,8 @@ export abstract class APIModel {
1919 abstract getById ( id : string ) : Promise < MediaTypeModel > ;
2020
2121 hasType ( type : MediaType ) : boolean {
22- const sanitizedApiName = this . apiName . replace ( / \s + / g, '_' ) ;
23- const disabledMediaTypes = ( this . plugin . settings [ `${ sanitizedApiName } _disabledMediaTypes` as keyof typeof this . plugin . settings ] as MediaType [ ] ) || [ ] ;
24- return ( this . types || [ ] ) . includes ( type ) && ! disabledMediaTypes . includes ( type ) ;
22+ const disabledMediaTypes = this . plugin . settings [ `${ this . apiName } _disabledMediaTypes` as keyof typeof this . plugin . settings ] as MediaType [ ] ;
23+ return this . types . includes ( type ) && ! disabledMediaTypes . includes ( type ) ;
2524 }
2625
2726 hasTypeOverlap ( types : MediaType [ ] ) : boolean {
You can’t perform that action at this time.
0 commit comments