Merge pull request #16 from mProjectsCode/release

update master with release
This commit is contained in:
Moritz Jung 2022-06-01 13:57:11 +02:00 committed by GitHub
commit 6f5f198a55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;
} }