Added isbn null check

This commit is contained in:
Evan Fiordeliso 2026-06-12 09:11:01 -04:00
parent 6f7b83b0e8
commit 8886be9f81
1 changed files with 2 additions and 2 deletions

View File

@ -179,8 +179,8 @@ export default class BookTrackerPlugin extends Plugin {
genres: book.genres.map((g) => safeString(g)),
coverImageUrl: safeString(book.coverImageUrl),
pageCount: book.pageCount,
isbn: safeString(book.isbn),
isbn13: safeString(book.isbn13),
isbn: book.isbn === null ? null : safeString(book.isbn),
isbn13: book.isbn13 === null ? null : safeString(book.isbn13),
},
};