From 8683fc9fe47b54b8e2674ee32e97dcc413dee1d5 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sat, 23 Sep 2023 14:38:30 -0500 Subject: [PATCH] Fix:Show series name when collapsing sub-series #2140 --- client/components/cards/LazyBookCard.vue | 5 ++++- server/utils/libraryHelpers.js | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/client/components/cards/LazyBookCard.vue b/client/components/cards/LazyBookCard.vue index d837bf90..d51ed208 100644 --- a/client/components/cards/LazyBookCard.vue +++ b/client/components/cards/LazyBookCard.vue @@ -89,7 +89,7 @@
-

{{ series }}

+

{{ seriesName }}

@@ -218,6 +218,9 @@ export default { // Only included when filtering by series or collapse series or Continue Series shelf on home page return this.mediaMetadata.series }, + seriesName() { + return this.series?.name || null + }, seriesSequence() { return this.series?.sequence || null }, diff --git a/server/utils/libraryHelpers.js b/server/utils/libraryHelpers.js index cd91725e..8517660d 100644 --- a/server/utils/libraryHelpers.js +++ b/server/utils/libraryHelpers.js @@ -190,6 +190,7 @@ module.exports = { const json = li.toJSONMinified() json.media.metadata.series = { id: filteredSeries.id, + name: filteredSeries.name, sequence: filteredSeries.sequence }