We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bb8c2d commit 99bf06dCopy full SHA for 99bf06d
src/api/apis/OpenLibraryAPI.ts
@@ -70,8 +70,8 @@ export class OpenLibraryAPI extends APIModel {
70
dataSource: this.apiName,
71
url: `https://openlibrary.org` + result.key,
72
id: result.key,
73
- isbn: result.isbn.find((el: string | any[]) => el.length <= 10) ?? 'unknown',
74
- isbn13: result.isbn.find((el: string | any[]) => el.length == 13) ?? 'unknown',
+ isbn: (result.isbn ?? []).find((el: string | any[]) => el.length <= 10) ?? 'unknown',
+ isbn13: (result.isbn ?? []).find((el: string | any[]) => el.length == 13) ?? 'unknown',
75
englishTitle: result.title_english ?? result.title,
76
77
author: result.author_name ?? 'unknown',
0 commit comments