oops
This commit is contained in:
parent
30208ea71a
commit
ad750cec49
3 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue