Skip to content
Snippets Groups Projects
Verified Commit 8a0cf918 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fix #1016: fixed broken fallback to album cover on artist card/detail

parent 9f3ca7b4
No related branches found
No related tags found
No related merge requests found
......@@ -51,13 +51,13 @@ export default {
return url
},
cover () {
if (this.artist.cover) {
if (this.artist.cover && this.artist.cover.original) {
return this.artist.cover
}
return this.artist.albums.map((a) => {
return a.cover
}).filter((c) => {
return !!c
return c && c.original
})[0] || {}
},
}
......
......@@ -230,12 +230,12 @@ export default {
)
},
cover() {
if (this.object.cover) {
if (this.object.cover && this.object.cover.original) {
return this.object.cover
}
return this.object.albums
.filter(album => {
return album.cover
return album.cover && album.cover.original
})
.map(album => {
return album.cover
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment