Skip to content

Commit

Permalink
fix: deleting quote or review not updating book detail page
Browse files Browse the repository at this point in the history
  • Loading branch information
bayang committed Sep 15, 2024
1 parent 4ff2cd1 commit d9d7a63
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/jelu-ui/src/components/BookDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit d9d7a63

Please sign in to comment.