oops
This commit is contained in:
parent
30208ea71a
commit
ad750cec49
3 changed files with 3 additions and 3 deletions
|
|
@ -48,7 +48,7 @@ export default class MediaDbPlugin extends Plugin {
|
|||
return false;
|
||||
}
|
||||
if (!checking) {
|
||||
this.updateActiveNote()
|
||||
this.updateActiveNote();
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ export class MediaDbIdSearchModal extends Modal {
|
|||
if (!api) {
|
||||
this.onSubmit(new Error('the selected api does not exist'));
|
||||
}
|
||||
const res = await api.getById({id: this.query} as MediaTypeModel); // TODO: fix jank
|
||||
const res = await api.getById(this.query);
|
||||
this.onSubmit(null, res);
|
||||
} catch (e) {
|
||||
this.onSubmit(e);
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ export class TestAPI extends APIModel {
|
|||
}
|
||||
|
||||
|
||||
async getById(item: MediaTypeModel): Promise<MediaTypeModel> {
|
||||
async getById(id: string): Promise<MediaTypeModel> {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue