From b3bf4423d0832d92c05898dac38ac2dbdf5b4035 Mon Sep 17 00:00:00 2001 From: Rezaul Karim Shaon Date: Sun, 1 Dec 2024 01:44:04 +0600 Subject: [PATCH] fixed: #183 - isbn empty handled --- frontend/src/pages/dashboard/BookListPage.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/pages/dashboard/BookListPage.vue b/frontend/src/pages/dashboard/BookListPage.vue index 89c5f00..2445be5 100644 --- a/frontend/src/pages/dashboard/BookListPage.vue +++ b/frontend/src/pages/dashboard/BookListPage.vue @@ -153,7 +153,10 @@ export default { formData.append('published_year', updatedBook.published_year || '') formData.append('publisher', updatedBook.publisher || '') formData.append('edition', updatedBook.edition || '') - formData.append('isbn', updatedBook.isbn || '') + // formData.append('isbn', updatedBook.isbn || '') + if (updatedBook.isbn) { + formData.append('isbn', updatedBook.isbn) + } formData.append('language', updatedBook.language || '') updatedBook.authors.forEach((authorId) => {