File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ export default class MediaDbPlugin extends Plugin {
48
48
return false ;
49
49
}
50
50
if ( ! checking ) {
51
- this . updateActiveNote ( )
51
+ this . updateActiveNote ( ) ;
52
52
}
53
53
return true ;
54
54
} ,
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ export class MediaDbIdSearchModal extends Modal {
50
50
if ( ! api ) {
51
51
this . onSubmit ( new Error ( 'the selected api does not exist' ) ) ;
52
52
}
53
- const res = await api . getById ( { id : this . query } as MediaTypeModel ) ; // TODO: fix jank
53
+ const res = await api . getById ( this . query ) ;
54
54
this . onSubmit ( null , res ) ;
55
55
} catch ( e ) {
56
56
this . onSubmit ( e ) ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export class TestAPI extends APIModel {
17
17
}
18
18
19
19
20
- async getById ( item : MediaTypeModel ) : Promise < MediaTypeModel > {
20
+ async getById ( id : string ) : Promise < MediaTypeModel > {
21
21
return undefined ;
22
22
}
23
23
You can’t perform that action at this time.
0 commit comments