update deps; fix preview modal
This commit is contained in:
parent
26cf166a54
commit
5125e73cb4
19 changed files with 1365 additions and 1302 deletions
|
|
@ -41,7 +41,7 @@ export class OpenLibraryAPI extends APIModel {
|
|||
year: result.first_publish_year,
|
||||
dataSource: this.apiName,
|
||||
id: result.key,
|
||||
} as BookModel)
|
||||
} as BookModel),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -75,7 +75,7 @@ export class OpenLibraryAPI extends APIModel {
|
|||
plot: result.description ?? 'unknown',
|
||||
pages: result.number_of_pages_median ?? 'unknown',
|
||||
onlineRating: Number.parseFloat(Number(result.ratings_average ?? 0).toFixed(2)),
|
||||
image: `https://covers.openlibrary.org/b/OLID/` + result.cover_edition_key + `-L.jpg` ?? '',
|
||||
image: `https://covers.openlibrary.org/b/OLID/` + result.cover_edition_key + `-L.jpg`,
|
||||
|
||||
released: true,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue