This commit is contained in:
mProjectsCode 2022-06-01 13:55:17 +02:00
parent 30208ea71a
commit ad750cec49
3 changed files with 3 additions and 3 deletions

View file

@ -48,7 +48,7 @@ export default class MediaDbPlugin extends Plugin {
return false; return false;
} }
if (!checking) { if (!checking) {
this.updateActiveNote() this.updateActiveNote();
} }
return true; return true;
}, },

View file

@ -50,7 +50,7 @@ export class MediaDbIdSearchModal extends Modal {
if (!api) { if (!api) {
this.onSubmit(new Error('the selected api does not exist')); 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); this.onSubmit(null, res);
} catch (e) { } catch (e) {
this.onSubmit(e); this.onSubmit(e);

View file

@ -17,7 +17,7 @@ export class TestAPI extends APIModel {
} }
async getById(item: MediaTypeModel): Promise<MediaTypeModel> { async getById(id: string): Promise<MediaTypeModel> {
return undefined; return undefined;
} }