Added fallback if there is no default cover
This commit is contained in:
parent
cf36d19e11
commit
e89bf8e455
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ async searchByTitle(title: string): Promise<MediaTypeModel[]> {
|
||||||
englishTitle: result.title_english ?? result.title,
|
englishTitle: result.title_english ?? result.title,
|
||||||
year: result.first_publish_year,
|
year: result.first_publish_year,
|
||||||
dataSource: this.apiName,
|
dataSource: this.apiName,
|
||||||
id: result.cover_edition_key,
|
id: result.cover_edition_key ?? result.edition_key,
|
||||||
} as BookModel)
|
} as BookModel)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue