From 3b97e2146d3ab84100da8f2ec9ab9badd914cf3d Mon Sep 17 00:00:00 2001 From: Divyang Joshi Date: Mon, 17 Apr 2023 20:09:59 -0500 Subject: [PATCH] fix: Make sure all existing genres also show up on the match tab --- client/components/modals/item/tabs/Match.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/client/components/modals/item/tabs/Match.vue b/client/components/modals/item/tabs/Match.vue index 8cf49bbd..58c52df8 100644 --- a/client/components/modals/item/tabs/Match.vue +++ b/client/components/modals/item/tabs/Match.vue @@ -115,7 +115,7 @@
- +

{{ $strings.LabelCurrently }} {{ mediaMetadata.genres.join(', ') }}

@@ -300,6 +300,12 @@ export default { }, isPodcast() { return this.mediaType == 'podcast' + }, + genres() { + const filterData = this.$store.state.libraries.filterData || {} + const currentGenres = filterData.genres || [] + const selectedMatchGenres = this.selectedMatch.genres || [] + return [...new Set([...currentGenres ,...selectedMatchGenres])] } }, methods: {