Skip to content

Commit

Permalink
Fix:Series bookshelf row padding when using ignore prefixes setting #…
Browse files Browse the repository at this point in the history
  • Loading branch information
advplyr committed Jul 19, 2024
1 parent 8330dab commit 7af02ad
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions client/components/cards/LazySeriesCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,16 @@ export default {
return this.store.getters['user/getSizeMultiplier']
},
seriesId() {
return this.series ? this.series.id : ''
return this.series?.id || ''
},
title() {
return this.series ? this.series.name : ''
return this.series?.name || ''
},
nameIgnorePrefix() {
return this.series ? this.series.nameIgnorePrefix : ''
return this.series?.nameIgnorePrefix || ''
},
displayTitle() {
if (this.sortingIgnorePrefix) return this.nameIgnorePrefix || this.title
if (this.sortingIgnorePrefix) return this.nameIgnorePrefix || this.title || '\u00A0'
return this.title || '\u00A0'
},
displaySortLine() {
Expand All @@ -110,13 +110,13 @@ export default {
}
},
books() {
return this.series ? this.series.books || [] : []
return this.series?.books || []
},
addedAt() {
return this.series ? this.series.addedAt : 0
return this.series?.addedAt || 0
},
totalDuration() {
return this.series ? this.series.totalDuration : 0
return this.series?.totalDuration || 0
},
seriesBookProgress() {
return this.books
Expand Down Expand Up @@ -161,7 +161,7 @@ export default {
return this.bookshelfView == constants.BookshelfView.DETAIL
},
rssFeed() {
return this.series ? this.series.rssFeed : null
return this.series?.rssFeed
}
},
methods: {
Expand Down

0 comments on commit 7af02ad

Please sign in to comment.