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

@ -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);