File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 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 {
4848 return false ;
4949 }
5050 if ( ! checking ) {
51- this . updateActiveNote ( )
51+ this . updateActiveNote ( ) ;
5252 }
5353 return true ;
5454 } ,
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ export class MediaDbIdSearchModal extends Modal {
5050 if ( ! api ) {
5151 this . onSubmit ( new Error ( 'the selected api does not exist' ) ) ;
5252 }
53- const res = await api . getById ( { id : this . query } as MediaTypeModel ) ; // TODO: fix jank
53+ const res = await api . getById ( this . query ) ;
5454 this . onSubmit ( null , res ) ;
5555 } catch ( e ) {
5656 this . onSubmit ( e ) ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export class TestAPI extends APIModel {
1717 }
1818
1919
20- async getById ( item : MediaTypeModel ) : Promise < MediaTypeModel > {
20+ async getById ( id : string ) : Promise < MediaTypeModel > {
2121 return undefined ;
2222 }
2323
You can’t perform that action at this time.
0 commit comments