From d9d7a632666dcb5b75040a364523b07cb7c63455 Mon Sep 17 00:00:00 2001 From: bayang Date: Sun, 15 Sep 2024 17:25:24 +0200 Subject: [PATCH] fix: deleting quote or review not updating book detail page --- src/jelu-ui/src/components/BookDetail.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/jelu-ui/src/components/BookDetail.vue b/src/jelu-ui/src/components/BookDetail.vue index a2f5dd93..f944e96d 100644 --- a/src/jelu-ui/src/components/BookDetail.vue +++ b/src/jelu-ui/src/components/BookDetail.vue @@ -79,9 +79,7 @@ const getUserReviewsForBook = async() => { dataService.findReviews(user.value.id, book.value?.book.id, null, null, null, 0, 20) .then(res => { console.log(res) - if (! res.empty) { - userReviews.value = res.content - } + userReviews.value = res.content }) .catch(err => { console.log(err) @@ -93,9 +91,7 @@ const getBookQuotesForBook = async() => { dataService.findBookQuotes(user.value.id, book.value?.book.id, null, 0, 20) .then(res => { console.log(res) - if (! res.empty) { - bookQuotes.value = res.content - } + bookQuotes.value = res.content }) .catch(err => { console.log(err)