From f8ce0b83550a77406f217f003d5b7c8cf94fb7d2 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sat, 4 Mar 2023 14:15:08 -0600 Subject: [PATCH] Fix collapse sub series show series name --- components/cards/LazyBookCard.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/cards/LazyBookCard.vue b/components/cards/LazyBookCard.vue index 4e96c4f4..65b763d0 100644 --- a/components/cards/LazyBookCard.vue +++ b/components/cards/LazyBookCard.vue @@ -240,10 +240,10 @@ export default { }, displayTitle() { if (this.recentEpisode) return this.recentEpisode.title - if (this.orderBy === 'media.metadata.title' && this.sortingIgnorePrefix && this.title.toLowerCase().startsWith('the ')) { - return this.title.substr(4) + ', The' - } - return this.title + + const ignorePrefix = this.orderBy === 'media.metadata.title' && this.sortingIgnorePrefix + if (this.collapsedSeries) return ignorePrefix ? this.collapsedSeries.nameIgnorePrefix : this.collapsedSeries.name + return ignorePrefix ? this.mediaMetadata.titleIgnorePrefix : this.title }, displayLineTwo() { if (this.recentEpisode) return this.title